joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a4a40
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r9
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1400050d0
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1400a4ac9
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400a4afb
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400a4b10
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x1400a4b2c
mov rcx, qword [rsp + 0x38]
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140004ab0
mov rcx, qword [rbx]
mov rax, qword [rsp + 0x28]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test r14, r14
je 0x1400a4b2c
mov edx, 1
mov rcx, rdi
call fcn.140004ab0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400a4eb0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x140115108]
mov edx, 0x10
xor ecx, ecx
call fcn.1400a5400
test rax, rax
je 0x1400a4f65
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400a4fc0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400a4f58
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400a4f37
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140004ab0
mov edx, 8
mov rcx, rsi
call fcn.140004ab0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.140004f20
ud2
Function at 0x1400a9b80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1400ba0f0]
test ecx, ecx
je 0x1400a9c4c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a9bab
cmp qword [rax + 8], 0
jne 0x1400a9c3e
mov ecx, dword [0x1400ba0f0]
test ecx, ecx
je 0x1400a9c5f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400a9c44
mov rsi, rax
test rax, rax
jne 0x1400a9c13
movzx eax, byte [0x140115108]
mov edx, 0x20
xor ecx, ecx
call fcn.1400a5400
test rax, rax
je 0x1400a9c88
lea rcx, [0x1400ba0d8]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1400ba0f0]
test ecx, ecx
je 0x1400a9c72
dec ecx
mov rsi, rax
mov rdx, rax
call sub.KERNEL32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm0, xmmword [rsp + 0x20]
mov rax, rsi
mov qword [rsi + 8], 1
movups xmmword [rsi + 0x10], xmm0
add rax, 0x10
jmp 0x1400a9c46
xor eax, eax
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1400ba0d8]
call fcn.1400842d0
mov ecx, eax
jmp 0x1400a9b95
lea rcx, [0x1400ba0d8]
call fcn.1400842d0
mov ecx, eax
jmp 0x1400a9bbb
lea rcx, [0x1400ba0d8]
mov rsi, rax
call fcn.1400842d0
mov ecx, eax
mov rax, rsi
jmp 0x1400a9c08
mov ecx, 8
mov edx, 0x20
call fcn.140004f20
int3

Function at 0x1400a9d33
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400a9d54
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp sub.KERNEL32.dll_TlsSetValue
mov rcx, rax
call fcn.1400842d0
mov ecx, eax
jmp 0x1400a9d47

Function at 0x1400ab515
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400ab52e
dec ecx
add rsp, 0x28
jmp sub.KERNEL32.dll_TlsGetValue
mov rcx, rax
call fcn.1400842d0
mov ecx, eax
jmp 0x1400ab525

Function at 0x1400adf8b
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400adf92
test al, 1
je 0x1400adfb1
test al, 2
jne 0x1400adfc9
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140102650]
mov edx, 0x23
call fcn.1400087a0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140102690]
mov edx, 0x25
call fcn.1400087a0
int3

Function at 0x1400ae8e6
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400ada2b
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400ae921
xor eax, eax
jmp 0x1400ae92e
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1400aeb9c
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x2a]
lea r15, [rsp + 0x42]
mov r12, qword [rcx + 8]
mov r13d, 0x7fffffff
cmp r9, r13
cmovb r13, r9
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x30], r13
mov rcx, rbp
mov rdx, r12
mov r8, rdi
call fcn.1400ae8de
mov al, byte [rsp + 0x29]
cmp al, 3
je 0x1400aed0e
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1400aed07
mov cl, byte [rsp + 0x28]
movzx edx, word [r14 + 4]
mov word [r15 + 4], dx
mov edx, dword [r14]
mov dword [r15], edx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1400aed2e
mov rdx, rsi
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400aed15
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.140014285
cmp al, 0xd
jne 0x1400aecd7
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400aecd7
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400aed3a
mov r13, r12
mov r12, rbx
mov rbx, r14
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140034bc8
mov r14, rax
xor ecx, ecx
call fcn.140082f95
test r14, r14
je 0x1400aecc9
mov ecx, 1
mov rdx, rbp
call fcn.140034d8a
mov rbp, r14
mov r14, rbx
mov rbx, r12
mov r12, r13
mov r13, qword [rsp + 0x30]
mov rcx, rbp
call fcn.1400aa907
cmp al, 0xd
jne 0x1400aed07
mov qword [rsp + 0x20], rbp
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.1400ae654
lea rbp, [rsp + 0x20]
mov rcx, rbp
call fcn.1400aab9a
jmp 0x1400aebec
mov eax, 1
jmp 0x1400aed1a
mov eax, 2
jmp 0x1400aed1a
movsxd rbp, eax
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str._home_zed_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.38.0_src_io_poll_evented.rs
call fcn.14000bb30
ud2
Function at 0x1400b8ed0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400b9c90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400b9c90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400b8f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140115194]
mov rbx, rcx
test esi, esi
jle 0x1400b9070
mov rax, qword [0x140115198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400b8f8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400b9015
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400b8f70
mov rcx, rbx
call fcn.1400b99b0
mov rdi, rax
test rax, rax
je 0x1400b9092
mov rax, qword [0x140115198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400b9af0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140115198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400b9077
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400b900e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400b9020
add dword [0x140115194], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140115198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400b900e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400b8ed0
nop dword [rax]
xor esi, esi
jmp 0x1400b8f98
mov rax, qword [0x140115198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400b8ed0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400b8ed0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400b9620
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140115200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401151e0]
test rbx, rbx
je 0x1400b967c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400b9673
test eax, eax
jne 0x1400b9673
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400b9658
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400b99b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140105b50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400b99d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400b99d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400b99d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400b9a2d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400b9a24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400b99d0
add rax, 0x28
cmp rax, r9
jne 0x1400b9a10
xor eax, eax
ret

Function at 0x1400b9a30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140105b50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400b9a4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400b9a58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400b9a4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400b9af0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140105b50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400b9b0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400b9b18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1800050a0
Capabilities:
Query or enumerate registry value

Disassembly:
lea rdx, str.ActivePolicy
xor r8d, r8d
jmp fcn.1800338d0

Function at 0x180005700
Capabilities:
Delete registry key
Delete registry value

Disassembly:
lea rdx, str.ActivePolicy
jmp fcn.180032190
Function at 0x1800073d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rbp + 0x190], rax
cmp dword [0x180133bb4], 0
je 0x18000741c
mov eax, dword [0x180133bb0]
jmp 0x180007613
mov dword [0x180133bb4], 1
mov dword [0x180133bb0], 1
mov ebx, 0x20019
call fcn.180036c90
mov ecx, 0x20219
test eax, eax
cmovne ebx, ecx
lea rcx, [rsp + 0x30]
call fcn.1800338e0
nop
mov r9d, ebx
lea r8, str.softwareTECOcular.3Agent
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x30]
call fcn.1800332e0
mov esi, 4
xor ebx, ebx
test rax, rax
je 0x1800074ed
mov r8d, esi
lea rdx, str.RunAs
lea rcx, [rsp + 0x30]
call fcn.1800338d0
mov edi, eax
or r8d, 0xffffffff
lea rdx, str.RunAs
lea rcx, [rsp + 0x30]
call fcn.180032020
movzx ecx, al
test al, al
jne 0x1800074b0
mov dword [0x180133bb0], ebx
jmp 0x1800074db
cmp ecx, 2
jne 0x1800074bd
mov dword [0x180133bb0], ecx
jmp 0x1800074db
cmp ecx, 3
jne 0x1800074ca
mov dword [0x180133bb0], ecx
jmp 0x1800074db
mov eax, dword [0x180133bb0]
cmp ecx, esi
cmove eax, esi
mov dword [0x180133bb0], eax
lea rcx, [rsp + 0x30]
call fcn.180031f70
test edi, edi
jne 0x180007601
mov byte [rsp + 0x70], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x71]
call fcn.180043ef0
mov byte [rbp + 0x80], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x81]
call fcn.180043ef0
xor r8d, r8d
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.18003f350
lea r11, [0x1800d3f38]
mov qword [rsp + 0x40], r11
lea rax, [0x1800d3f30]
mov qword [rsp + 0x48], rax
lea rax, [0x1800d3f20]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x60], 2
mov dword [rsp + 0x64], 3
mov dword [rsp + 0x68], esi
lea rdi, [rsp + 0x40]
lea rsi, [0x1800d3f10]
nop word [rax + rax]
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x80]
lea r8, [0x1800d1c4c]
mov edx, 0x103
lea rcx, [rsp + 0x70]
call fcn.180045c4c
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800075e7
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x80]
lea r8, [0x1800d1c4c]
mov edx, 0x103
lea rcx, [rsp + 0x70]
call fcn.180045c4c
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800075f4
inc ebx
add rdi, 8
cmp ebx, 3
jae 0x180007601
jmp 0x180007580
movsxd rax, ebx
mov ecx, dword [rsp + rax*4 + 0x60]
mov dword [0x180133bb0], ecx
mov ebx, dword [0x180133bb0]
lea rcx, [rsp + 0x30]
call fcn.180033260
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180043ec0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180007930
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
xor edi, edi
mov eax, 0x2011f
cmp dword [rsp + 0x70], edi
mov r9d, 0x2001f
mov rsi, r8
cmovne r9d, eax
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800079bf
test rbx, rbx
je 0x180007994
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx]
mov rcx, qword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1800079d0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
sub rsp, 0x40
cmp dword [rsp + 0x70], 0
mov eax, 0x2011f
mov r9d, 0x2001f
cmovne r9d, eax
lea rax, [rsp + 0x30]
mov rbx, r8
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180007a4c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x40
pop rbx
ret

Function at 0x180007a60
Capabilities:
Set registry value

Disassembly:
movsd qword [rsp + 0x20], xmm3
push rbx
sub rsp, 0x40
cmp dword [rsp + 0x70], 0
mov eax, 0x2011f
mov r9d, 0x2001f
cmovne r9d, eax
lea rax, [rsp + 0x30]
mov rbx, r8
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180007add
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 3
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x40
pop rbx
ret
Function at 0x180007af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x180007bb8
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x68]
cmp r11d, 2
jb 0x180007bad
add r11d, 2
mov eax, 2
mov dword [rsp + 0x68], r11d
shr r11d, 1
mov ecx, r11d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180045488
mov rbx, rax
test rax, rax
je 0x180007bad
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180007bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, r8
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x180007c41
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
add rsp, 0x40
pop rbx
ret

Function at 0x180007c50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
xorpd xmm0, xmm0
mov rbx, r8
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], 0
movsd qword [rsp + 0x40], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x180007cc3
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x78], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsd xmm0, qword [rsp + 0x40]
add rsp, 0x50
pop rbx
ret
Function at 0x180008430
Capabilities:
Copy file

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov ebp, r9d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp dword [0x1801340b0], 0
je 0x180008485
lea r9, str.CopyFile_1_______
lea r8, str.cmdtest
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov rdx, rbx
mov rcx, rdi
call fcn.180027d50
lea r8, str._NEW.txt
lea rdx, str..txt
mov rcx, rdi
call fcn.1800284f0
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.18002b390
nop
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.18002b390
nop
lea r8, [0x1800d1cbc]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.18002b680
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18002b680
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.180027ce0
nop
lea rcx, [rsp + 0x40]
call fcn.180027bd0
nop
lea rcx, [rsp + 0x48]
call fcn.180027bd0
lea r8, [0x1800d1cbc]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.18002b680
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18002b620
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180027ce0
nop
lea rcx, [rsp + 0x48]
call fcn.180027bd0
nop
lea rcx, [rsp + 0x40]
call fcn.180027bd0
mov r8d, ebp
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
cmp dword [0x1801340b0], 0
je 0x1800085bb
mov rdx, qword [rdi]
lea rcx, [rsp + 0x48]
call fcn.18002be20
nop
mov dword [rsp + 0x28], ebx
mov r9, qword [rax]
mov qword [rsp + 0x20], r9
lea r9, str.CopyFile_1______s___d_
lea r8, str.cmdtest
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
nop
lea rcx, [rsp + 0x48]
call fcn.180029530
nop
lea rcx, [rsp + 0x30]
call fcn.180027bd0
nop
lea rcx, [rsp + 0x38]
call fcn.180027bd0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x1800099f0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
add rcx, 0x10
jmp fcn.180032190
Function at 0x18000c920
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, rdx
repne scasb al, byte [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x18000c982
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movsxd rdi, edi
mov esi, 1
mov qword [rsp + 0x30], rdi
nop
test byte [rbx], 0x10
je 0x18000ca45
cmp byte [rbx + 0x2c], 0x2e
jne 0x18000c9b9
movzx eax, byte [rbx + 0x2d]
cmp al, 0x2e
jne 0x18000c9b1
cmp byte [rbx + 0x2e], 0
je 0x18000ca6d
test al, al
je 0x18000ca6d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x2c]
repne scasb al, byte [rdi]
mov eax, dword [rsp + 0x20]
not rcx
cmp rax, rcx
jb 0x18000ca63
mov rax, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov byte [rax + rbp - 1], 0
xor eax, eax
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx + 0x2c]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x18000c9f0
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rbx
repne scasb al, byte [rdi]
movzx eax, word [0x1800d4784]
mov rcx, rbp
mov word [rdi - 1], ax
movzx eax, byte [0x1800d4786]
mov byte [rdi + 1], al
call fcn.18000c920
mov rdi, qword [rsp + 0x30]
mov word [rdi + rbp - 1], 0x2a
mov esi, eax
jmp 0x18000ca68
mov r8, qword [rsp + 0x78]
lea rdx, [rbx + 0x2c]
mov rcx, rbp
mov byte [rdi + rbp - 1], 0
call qword [rsp + 0x70]
mov byte [rdi + rbp - 1], 0x2a
mov esi, eax
jmp 0x18000ca68
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test esi, esi
je 0x18000ca87
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov rcx, qword [rsp + 0x28]
test eax, eax
jne 0x18000c990
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret