joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800162e0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rdi, qword [0x180035f60]
lea r12, [0x180035f60]
cmp rdi, r12
je 0x1800163b3
lea r13, [0x180000000]
mov rbp, rdi
mov rdi, qword [rdi]
mov rax, qword [rbp + 8]
mov rcx, qword [rbp]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rsi, qword [rbp + 0x10]
call qword [sym.imp.kERNEL32.dll_GetVersion]
cmp al, 6
jb 0x18001636e
mov rax, qword [0x180035c60]
lea rcx, [rax + r13 + 0x397f6]
lea rbx, [rax + r13 + 0x3a19f]
call qword [sym.imp.kERNEL32.dll_GetModuleHandleA]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180016398
mov rcx, rsi
call rax
jmp 0x180016398
cmp qword [0x180035d18], 0
je 0x180016398
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, rsi
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
mov r8, rbp
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
cmp rdi, r12
jne 0x180016316
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180017204
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
lea rcx, [rsp + 0x70]
xor esi, esi
call qword [sym.imp.kERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsp + 0x70]
xor edx, edx
movabs rcx, 0x19254d38000
div rcx
mov rcx, qword [0x180035c60]
lea rdx, [0x180000000]
lea r9, [rcx + rdx + 0x393c0]
lea r8, [rcx + rdx + 0x3adb0]
lea edx, [rsi + 0x16]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll__snwprintf]
lea r11, [rsp + 0x30]
lea r8d, [rsi + 4]
mov qword [rsp + 0x28], r11
lea rdx, [0x180035cb0]
xor r9d, r9d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.kERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1800172e5
call qword [sym.imp.kERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800172d1
and qword [rsp + 0x20], rsi
lea edx, [rsi + 6]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
jne 0x1800172fb
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800172d6
mov ebx, 2
test ebx, ebx
je 0x1800172f1
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_CloseHandle]
jmp 0x1800172ed
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x180017321
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x70]
mov eax, dword [rbx]
test al, 1
je 0x18001730f
lea rcx, [rbx + 4]
xor edx, edx
call fcn.18002b3b0
mov rsi, rax
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_CloseHandle]
mov rbx, qword [0x180035ca0]
xor edx, edx
mov rcx, qword [rbx + 0xc8]
call fcn.180012060
mov qword [0x180035f50], rax
test rax, rax
je 0x18001737e
mov rcx, qword [rbx + 0xd0]
xor edx, edx
call fcn.180012060
mov qword [0x180035f48], rax
test rax, rax
je 0x18001737e
mov rcx, qword [rbx + 0xe0]
xor edx, edx
call fcn.180012060
mov qword [0x180035f40], rax
test rax, rax
je 0x18001737e
mov rcx, rsi
call fcn.18001cfdc
mov rcx, qword [0x180035b60]
call qword [sym.imp.kERNEL32.dll_SetEvent]
test byte [0x18003412c], 1
jne 0x1800173cb
lock add dword [0x180035c40], 1
lea rcx, [0x180022cec]
xor r8d, r8d
xor edx, edx
call fcn.18000ac68
test rax, rax
jne 0x1800173c2
call qword [sym.imp.kERNEL32.dll_GetLastError]
lock add dword [0x180035c40], 0xffffffff
jmp 0x1800173cb
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x60]
xor eax, eax
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180017ca8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r13
sub rsp, 0x30
mov rax, qword [0x180035ca0]
mov rcx, qword [0x180035bf0]
mov ebx, dword [0x180034128]
mov rsi, qword [rax + 0x18]
lea r8, [rsp + 0x60]
mov edx, 1
mov dword [rsp + 0x50], 0x28
call fcn.180002e84
lea r13, [0x180034128]
mov edi, eax
test eax, eax
jne 0x180017d8e
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x50], 0x28
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
jne 0x180017d2f
cmp dword [rsp + 0x50], 0x28
je 0x180017d3d
lea rcx, [0x180034130]
xor edx, edx
call fcn.1800126e8
movzx eax, word [0x18003412c]
mov ecx, 0x8000
test cx, ax
jne 0x180017d83
mov ecx, 0x801c
mov r9d, 3
xor r8d, r8d
or ax, cx
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], r13
mov word [0x18003412c], ax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x180034128], 0
jne 0x180017dc9
mov dword [0x180034128], ebx
test ebx, ebx
je 0x180017dbf
mov r9d, 3
mov rdx, r13
mov rcx, rsi
lea r8d, [r9 + 0x25]
call fcn.18001879c
cmp dword [0x180034128], 0
jne 0x180017dc9
mov dword [0x180034128], 0x3e8
cmp qword [0x180035f18], 0
jne 0x180017e41
mov rcx, qword [0x180035a68]
xor edx, edx
lea r8d, [rdx + 0x27]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180017e3a
mov r11d, dword [0x18003413c]
mov r10d, dword [0x180034138]
mov r9d, dword [0x180034134]
mov r8d, dword [0x180034130]
mov rdx, qword [0x180035c60]
lea rax, [0x180039348]
bswap r11d
bswap r10d
bswap r9d
mov dword [rsp + 0x28], r11d
bswap r8d
add rdx, rax
mov rcx, rbx
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfA]
mov qword [0x180035f18], rbx
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x18001879c
Capabilities:
Delete registry value
Set registry value

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
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x180035bf0]
mov r12d, r8d
mov rdi, rdx
lea r8, [rax - 0x18]
mov edx, 1
mov ebp, r9d
call fcn.180002e84
mov ebx, eax
test eax, eax
jne 0x180018814
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
test rdi, rdi
je 0x180018801
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x180018807
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x1800196a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [0x180035a68]
xor edx, edx
lea r8d, [rdx + 0x28]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1800197b2
mov rcx, qword [0x180035c60]
lea rsi, [0x180000000]
lea rcx, [rcx + rsi + 0x3ade2]
call qword [sym.imp.kERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x18001979e
mov rcx, qword [0x180035c60]
lea rdx, [rcx + rsi + 0x3adea]
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x18001979e
mov rax, qword [0x180035c60]
mov rcx, rdi
lea rdx, [rax + rsi + 0x3adf1]
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
test rax, rax
je 0x18001979e
mov rax, qword [0x180035c60]
mov rcx, rdi
lea rdx, [rax + rsi + 0x3adf9]
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18001979e
mov rax, qword [0x180035c60]
mov rcx, rdi
lea rdx, [rax + rsi + 0x3a924]
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18001979e
mov rax, qword [0x180035c60]
mov rcx, rdi
lea rdx, [rax + rsi + 0x3acd2]
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x1800197b2
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800197c8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rdx, rcx
lea rcx, [0x180036000]
call fcn.180019464
mov ebx, eax
test eax, eax
jne 0x180019835
mov rdx, qword [0x180035c08]
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x180019835
and dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
lea r9d, [rax + 3]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18001a4bc
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
and qword [rax + 8], 0
mov r12d, r8d
mov rbx, rcx
call fcn.18000f86c
lea r14, [0x180000000]
test eax, eax
je 0x18001a628
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x18001a621
mov eax, dword [0x180035c5c]
mov dword [rsp + 0x40], eax
call qword [sym.imp.kERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x44], eax
mov rax, qword [0x180035c68]
mov qword [rsp + 0x30], rax
call qword [sym.imp.kERNEL32.dll_GetCurrentThread]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x98]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.180018f68
mov edi, eax
test eax, eax
jne 0x18001a62d
cmp dword [rbx + 0x18], eax
je 0x18001a5d5
xor ecx, ecx
call fcn.18002306c
mov rsi, rax
test rax, rax
je 0x18001a5d5
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.18001c524
test eax, eax
jne 0x18001a5c3
mov r9d, dword [rbx + 0x14]
mov r8, qword [rbx + 8]
lea rax, [rsp + 0x80]
lea rdx, [rbx + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.18001c524
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x18001a5c3
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
mov r8, rsi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
test r12d, r12d
je 0x18001a62d
mov rax, qword [0x180035c60]
mov rcx, qword [rsp + 0x98]
xor r9d, r9d
lea rdx, [rax + r14 + 0x3a2a0]
xor r8d, r8d
call fcn.180007c90
test rax, rax
je 0x18001a61a
mov eax, dword [rax]
add rax, qword [rsp + 0x98]
je 0x18001a61a
lea rcx, [0x1800350f0]
xor edx, edx
call rax
jmp 0x18001a62d
mov edi, 0x7f
jmp 0x18001a62d
mov edi, 0xb
jmp 0x18001a62d
mov edi, 0x57
mov rcx, qword [0x180035a68]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rcx, qword [0x180035c60]
mov r8d, edi
lea rdx, [rcx + r14 + 0x3a2d3]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenA]
xor r9d, r9d
mov rdx, rbx
lea ecx, [r9 + 0x1c]
mov r8d, eax
call fcn.18000bc1c
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001a79c
Capabilities:
Check if file exists
Delete file
Get file attributes

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
sub rsp, 0x90
xor r12d, r12d
mov rdi, r8
mov rsi, rcx
mov rbx, rdx
lea rcx, [rax - 0x68]
lea r8d, [r12 + 0x60]
xor edx, edx
mov ebp, r12d
call sub.ntdll.dll_memset
cmp rsi, r12
je 0x18001a7ef
cmp rbx, r12
je 0x18001a7ef
cmp rdi, r12
je 0x18001a7ef
mov al, byte [rbx]
mov rcx, rbx
cmp al, 0x2f
jne 0x18001a81c
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
cmp al, 0x5c
je 0x18001a7ef
cmp al, 0x3a
je 0x18001a7ef
inc rcx
mov al, byte [rcx]
cmp al, r12b
jne 0x18001a80f
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_GetFileAttributesW]
mov rdx, rsi
lea rcx, [rsp + 0x30]
cmp eax, 0xffffffff
je 0x18001a865
mov r8d, 0x809
call fcn.18000dc14
mov rdx, rsi
lea rcx, [rsp + 0x30]
cmp eax, r12d
je 0x18001a865
call fcn.18001f78c
cmp eax, r12d
jne 0x18001a87b
lea rcx, [rsp + 0x30]
call fcn.18001e400
jmp 0x18001a7ef
xor r8d, r8d
call fcn.18001be1c
cmp eax, r12d
je 0x18001a7ef
mov ebp, 1
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov dword [rsp + 0x28], 9
mov word [rsp + 0x20], r12w
call fcn.18001fbe8
lea rcx, [rsp + 0x30]
mov ebx, eax
call fcn.18001da04
lea rcx, [rsp + 0x30]
neg eax
sbb edi, edi
and edi, ebx
call fcn.1800137dc
neg eax
sbb ebx, ebx
and ebx, edi
cmp ebx, r12d
jne 0x18001a8dc
cmp ebp, r12d
je 0x18001a8dc
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_DeleteFileW]
cmp eax, r12d
jne 0x18001a8dc
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov eax, ebx
jmp 0x18001a7f1

Function at 0x18001b6b4
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
mov dword [rax + 0x18], 0x10000
test rbx, rbx
je 0x18001b6ee
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001b72d
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp eax, 0xc0000004
jne 0x18001b732
jmp 0x18001b6d7
mov edi, 0xc000009a
test edi, edi
js 0x18001b755
mov rdx, rsi
mov rcx, rbx
call rbp
cmp dword [rbx], 0
je 0x18001b74a
mov ecx, dword [rbx]
add rbx, rcx
jmp 0x18001b74c
xor ebx, ebx
test rbx, rbx
je 0x18001b755
test eax, eax
jne 0x18001b736
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18001b888
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea r8, [rsp + 0x30]
xor edx, edx
and dword [rsp + 0x30], ebx
lea ecx, [rbx + 3]
call qword [sym.imp.kERNEL32.dll_GetComputerNameExA]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18001b8fc
mov rcx, qword [0x180035a68]
lea r8d, [rax + 1]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001b8fc
lea r8, [rsp + 0x30]
mov rdx, rax
mov ecx, 3
call qword [sym.imp.kERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x18001b8f4
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x18001b8fc
mov eax, dword [rsp + 0x30]
mov byte [rax + rbx], 0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x18001bb4c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov ebp, edx
mov rbx, rcx
xor edi, edi
call fcn.18000f94c
cmp eax, 0x102
je 0x18001bbde
and qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
call qword [sym.imp.kERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001bbbb
xor edx, edx
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_GetFileSize]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.kERNEL32.dll_CloseHandle]
jmp 0x18001bbc1
call qword [sym.imp.kERNEL32.dll_GetLastError]
test edi, edi
je 0x18001bbdc
mov rcx, rbx
call fcn.1800120e0
mov r8d, ebp
mov rdx, rbx
xor ecx, ecx
call fcn.18000af84
jmp 0x18001bbde
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18001c888
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
mov rbp, r8
mov r12, rdx
and qword [rax - 0x28], rdi
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.kERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001c93d
xor edx, edx
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
jne 0x18001c8e8
mov ebx, 0xe8
jmp 0x18001c945
mov rcx, qword [0x180035a68]
lea r8d, [rbx + 1]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18001c93d
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_ReadFile]
test eax, eax
je 0x18001c93d
cmp ebx, dword [rsp + 0x78]
je 0x18001c92e
mov ebx, 0x1e
jmp 0x18001c945
mov byte [rbx + rdi], 0
mov qword [r12], rdi
mov dword [rbp], ebx
xor ebx, ebx
jmp 0x18001c945
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x18001c954
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x18001c96f
test ebx, ebx
je 0x18001c96f
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x18001db70
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
mov rbp, r8
lea r8, [rax - 0x10]
mov rcx, 0xffffffff80000001
mov rsi, r9
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x18001dc5c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18001dc51
mov rcx, qword [0x180035a68]
mov r8, rax
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18001dc4c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x18001dc38
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rdi
test rcx, rcx
je 0x18001dc51
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x18001dc51
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x18001dc51
mov ebx, 8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18001dee4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [0x180035c08]
mov edi, r8d
mov rsi, rdx
xor ebx, ebx
lea r8, [rsp + 0x68]
lea r12d, [rbx + 1]
mov edx, r12d
call fcn.180002e84
cmp eax, ebx
jne 0x18001df4c
mov rcx, qword [rsp + 0x68]
lea r9d, [rbx + 3]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x68]
cmp eax, ebx
cmove ebx, r12d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18001df64
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r12
sub rsp, 0x40
and dword [rsp + 0x68], 0
mov r12, r8
lea rax, [r11 + 0x10]
mov rbp, r9
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
lea r9, [r11 - 0x28]
xor r8d, r8d
mov rdx, r12
mov rsi, rcx
mov qword [r11 - 0x20], rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18001e02b
mov rcx, qword [0x180035a68]
mov r8, rax
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001e026
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x18001e012
mov rcx, qword [rsp + 0x80]
mov qword [rbp], rbx
test rcx, rcx
je 0x18001e02b
mov eax, dword [rsp + 0x68]
mov dword [rcx], eax
jmp 0x18001e02b
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x18001e02b
mov edi, 8
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x18001e03b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x18001e334
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
and dword [rax - 0x28], 0
mov rsi, r9
mov qword [rax - 0x30], r8
and qword [rax - 0x38], 0
mov r12, rdx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [rsi]
mov rbp, r8
lea r9, [rax - 0x28]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
jne 0x18001e3dc
mov r8d, dword [rbp]
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001e3d7
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
jne 0x18001e3c3
mov qword [r12], rbx
jmp 0x18001e3dc
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x18001e3dc
mov edi, 8
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x18001e674
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov edi, edx
call fcn.18000c28c
test eax, eax
jne 0x18001e6a1
test dil, 4
jne 0x18001e6b6
mov rcx, qword [rbx + 8]
call qword [sym.imp.kERNEL32.dll_ResumeThread]
jmp 0x18001e6b6
lea rcx, [0x180035e98]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
call fcn.1800064f4
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret