joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412980
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [0x00420360]
mov rax, qword [rsi + 0x78]
mov rdx, qword [rsi + 0x88]
sub rdx, rax
cmp rcx, 0xffffffffffffffef
ja 0x412ad0
lea rbx, [rcx + 0xf]
and rbx, 0xfffffffffffffff0
cmp rbx, rdx
jbe 0x412a89
cmp rbx, 0xffff
ja 0x412ab4
mov rax, qword [0x004205e0]
mov rdx, qword [0x00420680]
mov r8d, dword [0x004525e8]
cmp dword [rax], 1
sbb eax, eax
and eax, 0xffffffc4
cmp qword [rdx], 0
lea r9d, [rax + 0x40]
sete dl
or r8d, 0x3000
xor ecx, ecx
movzx edx, dl
add rdx, 0x10000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, 0xfff
je 0x412a27
lea rcx, str.Bad_VirtualAlloc_result
mov qword [rsp + 0x28], rax
call sym.GC_default_on_abort.lto_priv.46
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsi + 0xf0]
cmp rdx, 0x3ff
jbe 0x412aa0
lea rcx, str.Too_many_heap_sections
mov qword [rsp + 0x28], rax
call sym.GC_default_on_abort.lto_priv.46
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x412aa5
mov rdx, qword [rsi + 0xf0]
nop
add qword [rsi + 0x38], 0x10000
lea rcx, [rdx + 1]
mov qword [rsi + rdx*8 + 0x163d0], rax
mov qword [rsi + 0xf0], rcx
lea rdx, [rax + 0x10000]
mov qword [rsi + 0x88], rdx
add rbx, rax
mov qword [rsi + 0x78], rbx
add rsp, 0x38
pop rbx
pop rsi
ret
test rax, rax
jne 0x412a60
lea rcx, str.GC_Warning:_Out_of_memory___trying_to_allocate_requested_amount___ld_bytes_..._n
mov rdx, rbx
call sym.GC_default_warn_proc.lto_priv.47
mov rcx, rbx
call sym.GC_win32_get_mem
test rax, rax
je 0x412ac5
add qword [rsi + 0x38], rbx
add rsp, 0x38
pop rbx
pop rsi
ret
cmp rdx, 0xffffffffffffffef
mov rbx, 0xfffffffffffffff0
jbe 0x412ab4
jmp 0x412a89
Function at 0x4194c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00452be4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x419648
mov rax, qword [0x00452be8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41950c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x419595
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4194f0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x41967d
mov rax, qword [0x00452be8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00452be8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x419660
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41958e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4195f0
add dword [0x00452be4], 1
cmp edi, 8
jae 0x4195c3
test dil, 4
jne 0x419634
test edi, edi
je 0x4195b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41964f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4195b8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4195dc
jmp 0x4195b8
add rsi, qword [0x00452be8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41958e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4195b8
xor esi, esi
jmp 0x419517
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4195b8
mov rax, qword [0x00452be8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x419dd0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00452ec0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00452ea0]
test rbx, rbx
je 0x419e24
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x419e1b
test rsi, rsi
je 0x419e1b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x419e00
lea rcx, [0x00452ec0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x41a060
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x41a070
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x41a080
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x41a0c1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x41a0b8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x41a0c3
add rax, 0x28
cmp rax, r9
jne 0x41a0a4
xor eax, eax
ret

Function at 0x41a160
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004206f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x41a1cd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x41a1cd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x41a1cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x41a1c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41a1cf
add rax, 0x28
cmp rax, r9
jne 0x41a1b0
xor eax, eax
add rsp, 0x28
ret

Function at 0x41a2d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004206f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x41a2f0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x41a2e8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x41a34d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x41a344
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41a354
add rax, 0x28
cmp rax, r9
jne 0x41a330
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x41a370
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004206f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x41a3de
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x41a3de
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x41a3de
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x41a3de
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x41a3d5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x41a3e5
add rcx, 0x28
cmp rcx, rax
jne 0x41a3c0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x41a3f8
jmp 0x41a3de
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x41a406
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x41a3de
test r9d, r9d
jg 0x41a3f0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x41a870
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x180003170
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x38], rdi
mov qword [rbp - 8], rdi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], rdi
call fcn.180006f30
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x30]
call fcn.180006010
lea r9, [rbp - 0x10]
lea rcx, [0x180030738]
xor r8d, r8d
xor edx, edx
mov qword [rbp - 0x10], rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1800031d3
mov rdx, qword [rbp - 0x10]
mov rcx, rbx
call fcn.180005d00
lea rdx, str.BrightData_
mov rcx, rbx
call fcn.180005e20
mov rcx, qword [rbp + 0x30]
or rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rcx + rdx], dil
jne 0x1800031f0
lea r8, [rbp + 0x28]
call fcn.1800077b0
test eax, eax
jne 0x180003238
mov rdx, qword [rbp + 0x28]
lea r8d, [rax + 0x14]
lea rcx, [rbp + 0x20]
call fcn.180007b70
mov rcx, qword [rbp + 0x20]
call fcn.180005bf0
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp - 8]
call fcn.180005f00
mov rcx, rbx
mov rdx, qword [rax]
call fcn.180005e20
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x18000324a
call fcn.1800099d8
mov qword [rbp + 0x28], rdi
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x18000325c
call fcn.1800099d8
mov qword [rbp + 0x20], rdi
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x18000326e
call fcn.1800099d8
mov qword [rbp + 0x30], rdi
lea rcx, [rbp - 8]
call fcn.180005cb0
lea rcx, [rbp + 0x38]
call fcn.180005cb0
mov rax, rbx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x180003720
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [0x18003edf0]
test rax, rax
jne 0x18000386b
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call fcn.180006f30
lea rdx, [0x18002f7d0]
lea rcx, [rsp + 0x40]
call fcn.180005e20
mov rcx, qword [rsp + 0x40]
call fcn.180006b20
test eax, eax
je 0x180003846
mov rcx, qword [rsp + 0x40]
lea rdx, [0x18002f7ec]
call fcn.180006a80
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180003846
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r8d, [rdx + 2]
call fcn.180008ae8
mov rcx, qword [rsp + 0x30]
call fcn.180008e70
mov rcx, qword [rsp + 0x30]
movsxd rbx, eax
call fcn.1800090e8
cmp ebx, 0x32
jg 0x180003841
lea rcx, [rsp + 0x38]
mov edx, ebx
call fcn.180005a40
mov r9, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
call fcn.180008974
mov rax, qword [rsp + 0x38]
mov byte [rbx + rax], 0
mov rdx, qword [rsp + 0x38]
test rbx, rbx
jle 0x180003835
mov r9, rdx
mov r8, rdx
movabs r10, 0x21ffffff80ffd
neg r9
nop dword [rax + rax]
movzx ecx, byte [r8]
lea eax, [rcx - 0x2e]
cmp al, 0x31
ja 0x180003821
bt r10, rax
jb 0x180003829
sub cl, 0x61
cmp cl, 0x19
ja 0x180003841
inc r8
lea rax, [r9 + r8]
cmp rax, rbx
jl 0x180003810
lea rcx, [0x18003edf0]
call fcn.180005f00
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180006af0
lea rcx, [rsp + 0x38]
call fcn.180005a80
lea rcx, [rsp + 0x40]
call fcn.180005cb0
mov rax, qword [0x18003edf0]
add rsp, 0x28
ret

Function at 0x180003b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
lea r8, [0x18002f8e8]
movzx edx, dx
mov ebx, r9d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x180003ba5
imul eax, ebx, 0x64
inc eax
mov dword [0x18003e86c], eax
xor eax, eax
jmp 0x180003c03
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180003bc6
imul eax, ebx, 0x64
add eax, 2
mov dword [0x18003e86c], eax
xor eax, eax
jmp 0x180003c03
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x180003bec
imul eax, ebx, 0x64
add eax, 3
mov dword [0x18003e86c], eax
xor eax, eax
jmp 0x180003bfe
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [r14], eax
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180003cf0
Capabilities:
Move file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
imul edi, r9d, 0x64
mov rbx, r8
lea r8, [rbp + 0x38]
lea r9d, [rdi + 1]
or esi, 0xffffffff
mov qword [rbp - 0x10], 0
call fcn.180003b60
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov r14, rax
test rax, rax
je 0x180003e7f
lea rcx, [rbp - 0x20]
call fcn.180006f30
lea rdx, [0x18002f5c0]
lea rcx, [rbp - 0x20]
call fcn.180005e20
cmp dword [section..data], 0
je 0x180003d78
mov rcx, qword [rbp - 0x20]
call fcn.180006ba0
test eax, eax
jne 0x180003d78
lea rcx, [rbp - 0x20]
call fcn.180003170
lea rdx, [0x18002f5fc]
lea rcx, [rbp - 0x20]
call fcn.180005e20
lea rcx, [rbp - 0x20]
mov rdx, rbx
call fcn.180005e20
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.180005d00
lea rdx, [0x18002f8f8]
lea rcx, [rbp - 0x18]
call fcn.180005e20
mov rcx, qword [rbp - 0x18]
call fcn.180009b18
mov rcx, qword [rbp - 0x20]
call fcn.180006b20
movsxd rbx, dword [rbp + 0x38]
test eax, eax
je 0x180003e1d
mov rcx, qword [rbp - 0x20]
mov r8d, ebx
mov rdx, r14
call fcn.180003c20
test eax, eax
jne 0x180003e7d
mov rcx, qword [rbp - 0x20]
call fcn.180009b18
mov rcx, qword [rbp - 0x20]
call fcn.180006b20
test eax, eax
je 0x180003e05
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
call fcn.180009b20
mov rcx, qword [rbp - 0x20]
call fcn.180006b20
test eax, eax
je 0x180003e1d
lea eax, [rdi + 2]
mov dword [0x18003e86c], eax
jmp 0x180003e7f
mov rcx, qword [rbp - 0x20]
lea rdx, [0x18002f908]
call fcn.180006a80
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x180003e5a
mov rcx, qword [rbp - 0x20]
lea rdx, [0x18002f918]
call fcn.180006a80
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x180003e5a
lea eax, [rdi + 3]
mov dword [0x18003e86c], eax
jmp 0x180003e7f
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180009058
cmp rax, rbx
je 0x180003e7d
lea eax, [rdi + 4]
mov dword [0x18003e86c], eax
jmp 0x180003e7f
xor esi, esi
lea rcx, [rbp - 0x20]
call fcn.180005cb0
lea rcx, [rbp - 0x18]
call fcn.180005cb0
lea rcx, [rbp - 0x10]
call fcn.180006af0
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x180004a60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
call fcn.180005e20
lea rdx, str.kbasnthasciateuhant98437uau
lea rcx, [rsp + 0x38]
call fcn.180005e20
mov rcx, qword [rsp + 0x38]
call fcn.180009b18
xor ecx, ecx
call fcn.180009958
mov rcx, qword [rsp + 0x38]
lea rdx, str.rbe
call fcn.180006a80
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180004ae3
mov rcx, qword [rsp + 0x38]
lea rdx, str.wbe
call fcn.180006a80
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180004ae3
call fcn.180009834
imul ebx, dword [rax], 0x64
inc ebx
jmp 0x180004b14
xor ecx, ecx
call fcn.180009958
mov r9, qword [rsp + 0x40]
mov edx, 1
lea rcx, [0x18002f7ac]
mov r8d, edx
call fcn.180009058
cmp rax, 1
je 0x180004b14
call fcn.180009834
imul ebx, dword [rax], 0x64
add ebx, 2
lea rcx, [rsp + 0x40]
call fcn.180006af0
mov rcx, qword [rsp + 0x38]
call fcn.180009b18
lea rcx, [rsp + 0x38]
call fcn.180005cb0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1800065f0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r14
push r15
sub rsp, 0x68
mov r14, rcx
mov rcx, qword [r8]
mov ebp, edx
mov edx, 2
mov rdi, r8
call fcn.18000bdf8
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rdi], rax
mov qword [rsp + 0x40], r15
mov word [rax], r15w
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x180006675
or eax, 0xffffffff
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
cmp dword [rsp + 0xa8], ebp
jg 0x18000668e
mov eax, 1
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0xa0]
xor ecx, ecx
inc ebx
mov qword [rsp + 0x60], rsi
lea eax, [rbx + 1]
mov dword [rsp + 0xa0], ebx
movsxd rdx, eax
add rdx, rdx
call fcn.18000bdf8
mov qword [rsp + 0x38], r15
movsxd rcx, ebx
mov word [rax], r15w
mov word [rax + rcx*2], r15w
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0xa0]
mov rcx, r14
mov r8, rax
mov edx, ebp
mov qword [rsp + 0x28], r15
mov rsi, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rbx, qword [rsp + 0x90]
test eax, eax
je 0x180006713
or eax, 0xffffffff
mov rsi, qword [rsp + 0x60]
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rdi]
test rcx, rcx
je 0x180006723
call fcn.1800099d8
mov qword [rdi], r15
mov qword [rdi], rsi
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
Function at 0x180006870
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
xor ebx, ebx
lea r8, [0x180030e24]
mov rsi, r9
or edi, 0xffffffff
mov ebp, ebx
mov dword [rsp + 0x60], ebx
call fcn.180006350
mov r14, rax
test rax, rax
je 0x180006923
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006923
mov ecx, dword [rsp + 0x60]
add rcx, 2
call fcn.18000bd40
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rbx, rax
mov byte [rax], bpl
mov eax, dword [rsp + 0x60]
mov byte [rax + rbx], bpl
mov eax, dword [rsp + 0x60]
mov rdx, r15
inc eax
mov rcx, r14
mov byte [rax + rbx], bpl
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006923
cmp dword [rsp + 0x78], 4
jne 0x180006923
mov ebp, dword [rbx]
test rsi, rsi
je 0x18000692a
mov dword [rsi], edi
mov rcx, rbx
call fcn.1800099d8
mov rbx, qword [rsp + 0x68]
mov eax, ebp
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006c00
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xa8
mov rax, qword [0x18003d1b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
or ebx, 0xffffffff
xor r13d, r13d
mov rdi, rcx
mov qword [r11 - 0x38], r15
mov r12d, r8d
mov r10d, r13d
mov r14, rdx
movsxd r15, r9d
lea rcx, [0x180030e28]
nop dword [rax + rax]
movzx eax, word [r10 + rcx]
lea r10, [r10 + 2]
mov word [rsp + r10 + 0x56], ax
test ax, ax
jne 0x180006c50
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xd8], rbp
call fcn.1800069d0
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180007df0
mov rsi, rax
test rax, rax
je 0x180006d5c
mov rcx, rax
call fcn.18000c78c
lea rdx, [rsp + 0x20]
mov ecx, eax
mov ebp, eax
call fcn.18000c7b4
test eax, eax
jne 0x180006d5c
lea eax, [r12*2 - 2]
mov r8d, 2
mov ecx, ebp
movsxd rdi, eax
cmp qword [rsp + 0x38], rdi
cmovl rdi, qword [rsp + 0x38]
mov rax, rdi
cqo
sub rax, rdx
mov rdx, rdi
sar rax, 1
neg rdx
mov rbx, rax
call fcn.18000cb80
lea rcx, [rdi + 2]
call fcn.18000bd40
mov r9, rsi
mov r8, rdi
mov rcx, rax
mov edx, 1
mov qword [r14], rax
call fcn.180008974
mov rax, qword [r14]
movsxd r8, ebx
mov word [rax + r8*2], r13w
cmp ebx, r15d
jle 0x180006d57
mov rcx, qword [r14]
mov rax, r15
mov rdx, rcx
test r15, r15
je 0x180006d57
cmp word [rdx], 0xa
je 0x180006d35
add rdx, 2
dec rax
jne 0x180006d21
mov ebx, r13d
jmp 0x180006d6c
test rdx, rdx
je 0x180006d57
mov rax, rdx
sub rax, rcx
sar rax, 1
sub r8, rax
cmp r8, r15
jle 0x180006d57
add r8, r8
add rdx, 2
call fcn.18000ade0
mov ebx, r13d
jmp 0x180006d6c
mov rcx, qword [r14]
test rcx, rcx
je 0x180006d6c
call fcn.1800099d8
mov qword [r14], r13
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xd8]
test rsi, rsi
je 0x180006da9
mov rcx, rsi
call fcn.18000c724
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180009cc0
add rsp, 0xa8
pop rsi
pop rbx
ret
mov r9d, 0x400
jmp 0x180006c00
Function at 0x180006dd0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xa8
mov rax, qword [0x18003d1b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
or ebx, 0xffffffff
xor r13d, r13d
mov rdi, rcx
mov qword [r11 - 0x38], r15
mov r12d, r8d
mov r10d, r13d
mov r14, rdx
movsxd r15, r9d
lea rcx, [0x180030e28]
nop dword [rax + rax]
movzx eax, word [r10 + rcx]
lea r10, [r10 + 2]
mov word [rsp + r10 + 0x56], ax
test ax, ax
jne 0x180006c50
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xd8], rbp
call fcn.1800069d0
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180007df0
mov rsi, rax
test rax, rax
je 0x180006d5c
mov rcx, rax
call fcn.18000c78c
lea rdx, [rsp + 0x20]
mov ecx, eax
mov ebp, eax
call fcn.18000c7b4
test eax, eax
jne 0x180006d5c
lea eax, [r12*2 - 2]
mov r8d, 2
mov ecx, ebp
movsxd rdi, eax
cmp qword [rsp + 0x38], rdi
cmovl rdi, qword [rsp + 0x38]
mov rax, rdi
cqo
sub rax, rdx
mov rdx, rdi
sar rax, 1
neg rdx
mov rbx, rax
call fcn.18000cb80
lea rcx, [rdi + 2]
call fcn.18000bd40
mov r9, rsi
mov r8, rdi
mov rcx, rax
mov edx, 1
mov qword [r14], rax
call fcn.180008974
mov rax, qword [r14]
movsxd r8, ebx
mov word [rax + r8*2], r13w
cmp ebx, r15d
jle 0x180006d57
mov rcx, qword [r14]
mov rax, r15
mov rdx, rcx
test r15, r15
je 0x180006d57
cmp word [rdx], 0xa
je 0x180006d35
add rdx, 2
dec rax
jne 0x180006d21
mov ebx, r13d
jmp 0x180006d6c
test rdx, rdx
je 0x180006d57
mov rax, rdx
sub rax, rcx
sar rax, 1
sub r8, rax
cmp r8, r15
jle 0x180006d57
add r8, r8
add rdx, 2
call fcn.18000ade0
mov ebx, r13d
jmp 0x180006d6c
mov rcx, qword [r14]
test rcx, rcx
je 0x180006d6c
call fcn.1800099d8
mov qword [r14], r13
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xd8]
test rsi, rsi
je 0x180006da9
mov rcx, rsi
call fcn.18000c724
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180009cc0
add rsp, 0xa8
pop rsi
pop rbx
ret
mov r9d, 0x400
jmp 0x180006c00

Function at 0x180006ea0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, rdx
mov r14, rcx
test rdx, rdx
jne 0x180006ec6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
movsxd rdi, dword [rsp + 0x30]
lea edx, [rdi + 1]
mov rsi, rax
movsxd rcx, edx
mov edx, 1
shl rcx, 3
call fcn.180009994
mov r8, rdi
mov rdx, rsi
mov rcx, rax
shl r8, 3
mov rbx, rax
call fcn.18000ade0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x38]
mov rax, r14
add rsp, 0x20
pop r14
ret