joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009b58
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
lea ecx, [rbx + 0x40]
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x180009bb6
test edi, edi
je 0x180009bad
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
lea eax, [rdi - 1]
cmp ecx, eax
jne 0x180009bad
mov ebx, 1
jmp 0x180009bb6
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180009ca8
Capabilities:
Encode data using base64 via winapi
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
cmp dword [0x180156678], ebx
mov ebp, r8d
mov r14, rdx
mov dword [rax + 0x20], ebx
mov r15, rcx
mov esi, ebx
je 0x180009d83
lea rax, [rax + 0x20]
mov edx, ebp
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x180009de6
mov edx, dword [rsp + 0x78]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180009de6
lea rax, [rsp + 0x78]
mov r9, rdi
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov esi, eax
test eax, eax
je 0x180009d78
mov rdx, r15
lea rcx, str._n_nBase64_of_file_:__s_n_n
call fcn.18000c008
cmp dword [rsp + 0x78], ebx
jbe 0x180009d6c
mov ecx, ebx
movzx edx, word [rdi + rcx*2]
lea rcx, [0x180100640]
call fcn.18000c008
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x180009d52
lea rcx, str._n
call fcn.18000c008
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x180009de6
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180009de6
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180009ddd
cmp ebp, dword [rsp + 0x78]
jne 0x180009ddd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180009e04
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
cmp dword [0x18015667c], ebx
mov r14, rdx
je 0x180009e51
call fcn.18001307c
mov ebx, eax
test eax, eax
jne 0x180009ef3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_file_readGeneric___kull_m_string_quick_base64_to_Binary__0x_08x__n
call fcn.18000c008
jmp 0x180009ef3
and qword [rsp + 0x30], rbx
mov r8d, 3
mov dword [rsp + 0x28], r9d
mov edx, 0x80000000
xor r9d, r9d
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180009ef3
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180009eea
cmp dword [rsp + 0x4c], ebx
jne 0x180009eea
mov rax, qword [rsp + 0x48]
mov ecx, 0x40
mov edx, eax
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
je 0x180009eea
mov r8d, dword [rdi]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], rbx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180009ee1
mov eax, dword [rsp + 0x40]
cmp dword [rdi], eax
jne 0x180009ee1
mov ebx, 1
jmp 0x180009eea
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x18000b39c
Capabilities:
Get domain controller name

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
or edx, 0x40020000
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov rsi, r8
mov dword [rsp + 0x20], edx
xor ebx, ebx
mov rdx, rcx
mov qword [r11 + 0x20], rbx
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x18000b439
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2 + 4], bx
jne 0x18000b3e8
lea eax, [rax*2 + 2]
mov ecx, 0x40
mov edx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
mov rcx, rax
test rax, rax
je 0x18000b42c
mov rax, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rax]
add rdx, 4
call fcn.1800c1170
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x18000b447
mov edx, eax
lea rcx, str.ERROR_kull_m_net_getDC___DsGetDcName:__u_n
call fcn.18000c008
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000b45c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, [rax + 8]
neg ecx
mov rsi, rdx
sbb edi, edi
and dword [rax + 8], ebx
and edi, 3
xor edx, edx
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x18000b4e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x18000b4e9
mov edx, dword [rsp + 0x30]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x18000b4fd
lea r8, [rsp + 0x30]
mov rdx, rax
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ebx, eax
test eax, eax
jne 0x18000b4fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_net_getComputerName___GetComputerNameEx_data___0x_08x__n
call fcn.18000c008
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000b4fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_net_getComputerName___GetComputerNameEx_init___0x_08x__n
call fcn.18000c008
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18000b664
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
lea rax, [0x180156680]
mov rdi, rdx
mov qword [r11 - 0x28], rbx
mov rdx, qword [rcx + 8]
mov rsi, rcx
mov qword [r11 - 0x20], rax
mov rbp, r8
mov ecx, dword [rdx]
test ecx, ecx
je 0x18000b7b1
sub ecx, 1
je 0x18000b73a
sub ecx, 2
je 0x18000b70b
cmp ecx, 3
jne 0x18000b88b
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x18000b75f
cmp qword [rsi], rbx
je 0x18000b6e3
mov rcx, qword [rdx + 8]
xor r9d, r9d
mov edx, dword [rsi]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x18000b88b
mov rax, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov rdx, qword [rdi]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
jmp 0x18000b88b
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x18000b75f
mov rcx, qword [rdx + 8]
mov r9d, r8d
mov dword [rsp + 0x30], ebx
mov edx, 0x22c187
mov qword [rsp + 0x28], rbx
mov r8, qword [rdi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rsi
call fcn.18000a408
jmp 0x18000b704
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x18000b75f
mov rcx, qword [rdx + 8]
mov r9, r8
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x18000b704
mov rdx, r8
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18000b88b
mov r8, rbp
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.18000b664
test eax, eax
je 0x18000b7a1
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.18000b664
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000b88b
mov rdx, qword [rdi + 8]
mov ecx, dword [rdx]
test ecx, ecx
je 0x18000b87b
sub ecx, 1
je 0x18000b85b
sub ecx, 1
je 0x18000b841
sub ecx, 1
je 0x18000b81f
cmp ecx, 3
jne 0x18000b88b
mov rcx, qword [rdx + 8]
xor r9d, r9d
mov edx, dword [rdi]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x18000b88b
mov rax, qword [rdi + 8]
lea r9, [rsp + 0x70]
mov rdx, qword [rsi]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x18000b704
mov rcx, qword [rdx + 8]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, 0x22c183
jmp 0x18000b728
mov rcx, qword [rdx + 8]
mov r9, r8
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov rcx, qword [rcx]
call fcn.18000bdb4
jmp 0x18000b704
mov rcx, qword [rdx + 8]
mov r9, r8
mov r8, qword [rsi]
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x18000b704
mov rdx, qword [rdi]
mov rcx, qword [rsi]
call fcn.1800c1170
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000bb58
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r10d, r10d
mov rcx, qword [rcx + 8]
mov rbx, r9
mov r11d, dword [rcx]
test r11d, r11d
je 0x18000bb9f
cmp r11d, 1
jne 0x18000bbbf
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, r8d
mov qword [rsp + 0x20], rax
mov r8, rdx
mov rdx, qword [rdi]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x18000bbad
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r10d, eax
test eax, eax
je 0x18000bbbf
test rbx, rbx
je 0x18000bbbf
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov eax, r10d
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x18000bbd0
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0x80]
mov r15, rcx
mov ebp, edx
xor ebx, ebx
mov r14, r9
mov rsi, r8
mov edx, dword [rax]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18000bc68
mov edx, ebp
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x18000bc5f
mov qword [rsp + 0x38], rdi
mov ecx, 0x102
mov qword [rsp + 0x30], r14
mov r9, rax
mov dword [rsp + 0x28], 0x1000
mov r8d, ebp
mov rdx, r15
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_RtlCompressBuffer]
test eax, eax
setns bl
test ebx, ebx
jne 0x18000bc5f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x18000bc84
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rdx
mov rsi, rcx
lea edx, [rdi + 0x10]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x18000bd46
and qword [rsp + 0x28], rdi
lea r8d, [rdi + 2]
and dword [rsp + 0x20], edi
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rax], rcx
mov rax, qword [rbx]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000bd26
and qword [rsp + 0x20], rdi
lea edx, [rdi + 4]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rax + 8], rcx
test rcx, rcx
je 0x18000bd26
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
cmp dword [rcx], 0x504d444d
jne 0x18000bd26
mov eax, 0xa793
cmp word [rcx + 4], ax
jne 0x18000bd26
mov edi, 1
jmp 0x18000bd46
mov rbx, qword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000bd38
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000bd46
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18000c824
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov ebp, ecx
mov rdx, qword [rdx]
mov ebx, 0xc0000004
test rdx, rdx
je 0x18000c858
lea r9, [rax + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
jmp 0x18000c89e
mov edi, 0x1000
mov edx, edi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x18000c89e
lea r9, [rsp + 0x38]
mov r8d, edi
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
jns 0x18000c894
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add edi, edi
cmp ebx, 0xc0000004
je 0x18000c85d
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18000d510
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0xd0
mov r15d, r8d
mov rsi, rdx
mov edi, ecx
xor ebp, ebp
xor edx, edx
lea rcx, [rax - 0x78]
or r15d, 0x10
lea ebx, [rbp + 0x68]
mov r8d, ebx
call fcn.1800c1d50
mov dword [rsp + 0x60], ebx
cmp qword [rsp + 0x120], rbp
je 0x18000d563
mov rbx, qword [rsp + 0x120]
jmp 0x18000d574
mov edx, reloc.ODBC32.dll_SQLAllocHandle
lea ecx, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rbx, rbx
je 0x18000d6ad
mov rcx, rsi
call fcn.1800c61e4
mov rsi, rax
test rax, rax
je 0x18000d6ad
test edi, edi
je 0x18000d630
sub edi, 1
je 0x18000d5f7
cmp edi, 1
jne 0x18000d691
mov r9d, dword [rsp + 0x100]
lea rax, [rsp + 0x60]
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], rbp
and qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
jmp 0x18000d663
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
xor r9d, r9d
and qword [rsp + 0x40], rbp
mov r8, rsi
and qword [rsp + 0x38], rbp
xor edx, edx
mov dword [rsp + 0x30], r15d
xor ecx, ecx
and dword [rsp + 0x28], ebp
and qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x18000d663
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], rbp
xor r8d, r8d
and qword [rsp + 0x30], rbp
mov rdx, rsi
mov dword [rsp + 0x28], r15d
xor ecx, ecx
and dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, eax
test eax, eax
je 0x18000d691
cmp dword [rsp + 0x128], 0
jne 0x18000d67e
cmp qword [rsp + 0x120], 0
jne 0x18000d6a5
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x120], 0
jne 0x18000d6a5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call fcn.1800c6268
lea r11, [rsp + 0xd0]
mov eax, ebp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x18000e470
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [r9]
xor ebx, ebx
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov dword [rax], ecx
test ecx, ecx
je 0x18000e5be
cmp ecx, 1
jne 0x18000e5b3
lea edx, [rbx + 0x20]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov rax, qword [rdi]
cmp qword [rax + 8], rbx
je 0x18000e5b3
mov eax, esi
mov qword [rsp + 0x28], rbx
neg eax
mov dword [rsp + 0x20], ebx
mov rcx, rbp
sbb r8d, r8d
xor r9d, r9d
and r8d, 2
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
cmp qword [rcx], rbx
je 0x18000e5b3
mov rcx, qword [rcx]
neg esi
mov qword [rsp + 0x20], rbx
sbb edx, edx
xor r9d, r9d
and edx, 0xfffffffe
xor r8d, r8d
add edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov qword [rcx + 8], rdx
mov rax, qword [rdi]
mov rdx, qword [rax + 8]
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x18000e5b3
cmp dword [rcx], 0x66676572
jne 0x18000e599
cmp dword [rcx + 0x1c], ebx
jne 0x18000e599
add rcx, 0x1000
cmp dword [rcx], 0x6e696268
jne 0x18000e599
mov qword [rdx + 0x10], rcx
lea rdx, [rcx + 0x20]
movsxd rax, dword [rcx + 4]
add rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov qword [rcx + 0x18], rdx
mov ecx, 0x6b6e
mov rax, qword [rdi]
mov rdx, qword [rax + 8]
mov rax, qword [rdx + 0x18]
cmp word [rax + 4], cx
jne 0x18000e599
test byte [rax + 6], 0xc
jne 0x18000e5be
mov rcx, qword [rdx + 8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000e5c3
mov ebx, 1
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000eba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov r9d, dword [rcx]
xor ebx, ebx
mov r10, r8
mov r11, rdx
mov r14, rcx
test r9d, r9d
je 0x18000ec52
cmp r9d, 1
jne 0x18000ec8b
call fcn.18000ea60
test rax, rax
mov rcx, rax
setne bl
test ebx, ebx
je 0x18000ec8b
mov edi, dword [rax + 8]
mov rdx, qword [rsp + 0x60]
btr edi, 0x1f
test rdx, rdx
je 0x18000ec02
mov eax, dword [rax + 0x10]
mov dword [rdx], eax
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x18000ec8b
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x18000ec4e
xor ebx, ebx
cmp dword [rsi], edi
setae bl
test ebx, ebx
je 0x18000ec4e
test dword [rcx + 8], 0x80000000
je 0x18000ec30
lea rdx, [rcx + 0xc]
jmp 0x18000ec43
mov rax, qword [r14 + 8]
movsxd r8, dword [rcx + 0xc]
mov rdx, qword [rax + 0x10]
add rdx, 4
add rdx, r8
mov r8d, edi
mov rcx, r9
call fcn.1800c1170
mov dword [rsi], edi
jmp 0x18000ec8b
mov rax, qword [rsp + 0x70]
xor r8d, r8d
mov r9, qword [rsp + 0x60]
mov rdx, r10
mov qword [rsp + 0x28], rax
mov rcx, r11
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test ebx, ebx
jne 0x18000ec8b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x18000eca4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r9d, dword [rcx]
xor ebx, ebx
mov r10, r8
mov r11, rdx
mov rdi, rcx
test r9d, r9d
je 0x18000ed38
cmp r9d, 1
jne 0x18000ed6f
call fcn.18000ea60
mov rcx, rax
test rax, rax
je 0x18000ed6f
mov edx, dword [rax + 8]
mov r8d, edx
btr r8d, 0x1f
cmp r8d, dword [rsp + 0x70]
setae bl
test ebx, ebx
je 0x18000ed31
mov eax, dword [rsp + 0x60]
mov dword [rcx + 0x10], eax
mov eax, 0x80000000
and edx, eax
or edx, dword [rsp + 0x70]
mov dword [rcx + 8], edx
test eax, edx
je 0x18000ed12
add rcx, 0xc
jmp 0x18000ed25
movsxd rdx, dword [rcx + 0xc]
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x10]
add rcx, 4
add rcx, rdx
mov rdx, qword [rsp + 0x68]
call fcn.1800c1170
jmp 0x18000ed6f
mov ecx, Ordinal_54
jmp 0x18000ed69
mov eax, dword [rsp + 0x70]
xor r8d, r8d
mov r9d, dword [rsp + 0x60]
mov rdx, r10
mov dword [rsp + 0x28], eax
mov rcx, r11
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test ebx, ebx
jne 0x18000ed6f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000ed7c
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r10d, dword [rcx]
xor r12d, r12d
mov r11d, r8d
mov r14, r9
mov rbp, rdx
mov edi, r12d
test r10d, r10d
je 0x18000eeb3
cmp r10d, 1
jne 0x18000eef0
cmp dword [rdx + 0x18], r12d
je 0x18000eef0
cmp r11d, dword [rdx + 0x18]
jae 0x18000eef0
cmp dword [rdx + 0x20], 0xffffffff
je 0x18000eef0
mov rax, qword [rcx + 8]
movsxd rcx, dword [rdx + 0x20]
mov r8, qword [rax + 0x10]
add rcx, r8
movzx eax, word [rcx + 4]
add eax, 0xffff9994
test eax, 0xfffffdff
jne 0x18000eef0
cmp word [rcx + 6], r12w
je 0x18000eef0
movzx eax, word [rcx + 6]
cmp r11d, eax
jae 0x18000eef0
movsxd rdx, dword [rcx + r11*8 + 8]
mov eax, 0x6b6e
add rdx, r8
cmp word [rdx + 4], ax
jne 0x18000eef0
test r9, r9
je 0x18000eef0
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x18000eef0
test byte [rdx + 6], 0x20
je 0x18000ee89
movzx ebx, word [rdx + 0x4c]
cmp dword [rsi], ebx
seta dil
test edi, edi
je 0x18000eeaf
lea rcx, [rdx + 0x50]
mov edx, ebx
call fcn.18001275c
mov rbp, rax
test rax, rax
je 0x18000eeaa
lea r8, [rbx + rbx]
mov rdx, rax
mov rcx, r14
call fcn.1800c1170
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000eeaa
movzx ebx, word [rdx + 0x4c]
shr ebx, 1
cmp dword [rsi], ebx
seta dil
test edi, edi
je 0x18000eeaf
movzx r8d, word [rbp + 0x4c]
add rdx, 0x50
mov rcx, r9
call fcn.1800c1170
mov word [r14 + rbx*2], r12w
mov dword [rsi], ebx
jmp 0x18000eef0
mov r9, qword [rsp + 0x80]
mov r8, r14
mov qword [rsp + 0x38], r12
mov edx, r11d
mov qword [rsp + 0x30], r12
mov rcx, rbp
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete dil
test edi, edi
jne 0x18000eef0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret