joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000aa58
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x880
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rcx, qword [0x10001dad0]
lea rdx, [0x10001d690]
xor esi, esi
mov r8d, 0x103
mov word [0x10001d896], si
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
jne 0x10000aab1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000ab2e
mov word [0x10001d896], si
mov edi, esi
lea rbx, [0x10001bda0]
cmp qword [0x10001bda8], rsi
je 0x10000ab0f
mov r12d, 0x401
cmp qword [rbx], rsi
jne 0x10000ab05
mov rax, qword [rbx + 0x18]
mov r8, qword [rbx + 8]
mov r9, qword [rbx + 0x10]
mov rdx, r12
lea rcx, [rsp + 0x60]
cmp rax, rsi
je 0x10000aafa
mov qword [rsp + 0x20], rax
call fcn.100004f50
jmp 0x10000aaff
call fcn.100004f50
cmp eax, esi
jge 0x10000ab58
inc edi
add rbx, 0x30
cmp qword [rbx + 8], rsi
jne 0x10000aad0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a698]
neg edi
sbb eax, eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.100017040
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x10000ab96
inc edi
mov r8, qword [rbx + 0x20]
cmp r8, rsi
je 0x10000abf3
mov r9, qword [rbx + 0x28]
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.100004f50
add rbx, 0x30
cmp eax, esi
jl 0x10000abef
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x10000abf7
inc edi
jmp 0x10000abf7
add rbx, 0x30
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10000ab09
Function at 0x10000ac10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x850], rax
cmp qword [0x10001bda8], 0
lea rbx, [0x10001bda8]
je 0x10000acf0
mov rax, qword [rbx + 0x10]
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
mov edx, 0x401
lea rcx, [rsp + 0x40]
test rax, rax
je 0x10000ac66
mov qword [rsp + 0x20], rax
call fcn.100004f50
jmp 0x10000ac6b
call fcn.100004f50
test eax, eax
js 0x10000ad21
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x20008
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000ace2
mov rcx, qword [rsp + 0x30]
lea r9d, [rax + 0x50]
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x10000acd1
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001880]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x30], 0
add rbx, 0x30
cmp qword [rbx], 0
jne 0x10000ac40
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a698]
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.100017040
add rsp, 0x860
pop rbx
ret
mov eax, 0x80004005
jmp 0x10000ad08
Function at 0x10000b610
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jb 0x10000b659
cmp al, 6
jb 0x10000b659
lea rcx, [0x100002b18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x10000b659
lea rdx, [0x100002b38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x10000b659
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rax
add rsp, 0x28
ret
Function at 0x10000dc98
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x10000ddef
lea rdx, [0x1000016a0]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x10000ddbb
lea r8d, [rbx + 0x1c]
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10000dd5c
mov dword [rsp + 0x24], 4
jmp 0x10000dd2f
mov eax, esi
inc esi
cmp eax, 5
jge 0x10000dd4c
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x10000dd50
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10000dd1d
mov eax, dword [rsp + 0x24]
cmp eax, 1
je 0x10000dd9a
mov ebx, 0x80004005
jmp 0x10000ddb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ebx, eax
sub edx, 0x41c
je 0x10000dd91
sub edx, 8
je 0x10000dd8d
sub edx, 2
je 0x10000dd8d
cmp edx, 0xf
je 0x10000dd8d
lea rcx, [0x1000031c0]
mov edx, eax
call fcn.10000a80c
jmp 0x10000dd96
xor ebx, ebx
jmp 0x10000dd9a
mov ebx, 0x652
test ebx, ebx
jne 0x10000ddb0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, 1
je 0x10000ddb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000dde4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov ebx, eax
sub ecx, 0x424
je 0x10000dde2
cmp ecx, 0xc
je 0x10000dde2
lea rcx, [0x1000031f0]
mov edx, eax
call fcn.10000a80c
jmp 0x10000dde4
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000de05
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100003218]
mov edx, eax
mov ebx, eax
call fcn.10000a80c
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 0x10000de24
Capabilities:
Create service

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0x4a0
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rcx, [r11 - 0x236]
xor r12d, r12d
xor edx, edx
mov r8d, 0x20c
mov word [r11 - 0x238], r12w
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x280]
mov r8d, 0x103
xor ecx, ecx
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, r12d
jne 0x10000de99
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000e08d
mov esi, 0x20
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x280]
lea eax, [rsi + 0xf]
mov edx, 0x107
mov word [rsp + 0x486], r12w
mov word [rsp + 0x72], ax
lea eax, [rsi + 0x36]
mov word [rsp + 0x70], si
mov word [rsp + 0x74], ax
mov word [rsp + 0x76], r12w
call fcn.100004e18
cmp eax, r12d
jl 0x10000e08d
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x80], r12w
call sub.msvcrt.dll_memset
lea ebx, [rsi - 5]
or r15, 0xffffffffffffffff
lea r8, [rsp + 0x80]
mov edx, ebx
mov r9d, 0x100
mov rcx, r15
mov word [rsp + 0x20], r12w
call sub.msi.dll_MsiDecomposeDescriptorW
lea ecx, [rsi - 0x17]
cmp eax, r12d
jne 0x10000df4a
mov word [rsp + 0x20], cx
lea r8, [rsp + 0x80]
mov r9d, 0x100
mov edx, ebx
mov rcx, r15
call sub.msi.dll_MsiDecomposeDescriptorW
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
cmp rax, r12
je 0x10000e083
mov ebx, r12d
cmp edi, r12d
je 0x10000df79
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
lea rax, [0x100001640]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x280]
lea r8, [rsp + 0x80]
lea rdx, [0x1000016a0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r9d, 0xf01ff
mov rcx, rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
cmp rax, r12
jne 0x10000e006
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x430
jne 0x10000e078
mov ecx, edi
inc edi
cmp ecx, 0xe
jge 0x10000e078
mov esi, 0x20
jmp 0x10000df66
lea r8, [rsp + 0x80]
mov r9d, 0x100
mov edx, 0x20
mov rcx, r15
mov word [rsp + 0x20], r12w
call sub.msi.dll_MsiDecomposeDescriptorW
cmp eax, r12d
jne 0x10000e04f
mov eax, 9
lea r8, [rsp + 0x80]
mov r9d, 0x100
lea edx, [rax + 0x12]
mov rcx, r15
mov word [rsp + 0x20], ax
call sub.msi.dll_MsiDecomposeDescriptorW
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x70], rax
call qword [0x10001a5c0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000e08b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.100017040
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x10000e250
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc70
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xc60], rax
lea rax, [rsp + 0x48]
mov r9d, 0x2001f
xor r8d, r8d
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
cmp eax, esi
je 0x10000e2a1
cmp eax, 2
sete al
jmp 0x10000e3cf
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x3e8
call sub.msvcrt.dll_memset
mov ebp, 0x1f4
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x40], ebp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x50], rax
jmp 0x10000e2f6
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.10000e250
cmp al, sil
je 0x10000e392
mov eax, dword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
je 0x10000e2d1
mov rcx, qword [rsp + 0x48]
cmp eax, 0x103
jne 0x10000e397
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
cmp eax, esi
je 0x10000e3b7
lea rcx, [rsp + 0x452]
xor edx, edx
mov r8d, 0x800
mov word [rsp + 0x450], si
call sub.msvcrt.dll_memset
lea r8, [0x1000032a0]
lea rcx, [rsp + 0x450]
mov r9, rdi
mov edx, 0x401
call fcn.100004f50
cmp eax, esi
jl 0x10000e39d
lea rcx, [rsp + 0x450]
mov edx, ebx
call fcn.10000a80c
jmp 0x10000e39d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x58], ebp
jle 0x10000e3b3
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x10000e3b3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x10000e3cf
cmp dword [rsp + 0x58], ebp
jle 0x10000e3cd
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x10000e3cd
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.100017040
mov rbx, qword [rsp + 0xca0]
add rsp, 0xc70
pop rdi
pop rsi
pop rbp
ret
Function at 0x100016a18
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], di
call sub.msvcrt.dll_memset
lea ebp, [rdi + 0x5c]
cmp rbx, rdi
je 0x100016a90
cmp word [rbx], di
je 0x100016a90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x100016a90
cmp word [rbx], 0x7f
jae 0x100016a85
cmp word [rbx + 2], 0x3a
je 0x100016afa
cmp word [rbx], bp
jne 0x100016a90
cmp word [rbx + 2], bp
je 0x100016afa
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x100016afa
lea ecx, [rax + 2]
cmp ecx, esi
ja 0x100016afa
mov ecx, eax
inc eax
mov r8, rbx
mov word [rsp + rcx*2 + 0x20], bp
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov word [rsp + rax*2 + 0x20], di
call fcn.100004e18
cmp eax, edi
jl 0x100016afa
lea r8, [0x100004cc8]
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.100004e18
cmp eax, edi
setge al
cmp al, dil
je 0x100016afa
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100016afc
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.100017040
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x100016c20
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rdx], 0
lea rcx, [rsp + 0x20]
mov r8d, 0x114
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x100016c87
cmp dword [rsp + 0x24], 5
ja 0x100016c78
jne 0x100016c87
cmp dword [rsp + 0x28], 1
jb 0x100016c87
lea rcx, [0x100003c20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100016c93
lea rcx, [0x100003c20]
call fcn.100016a18
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.100017040
add rsp, 0x158
ret
Function at 0x100017040
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10001a100]
jne 0x10001705b
rol rcx, 0x10
test cx, 0xffff
jne 0x100017057
ret 0
ror rcx, 0x10
jmp 0x100017480
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10001d120]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10001d218]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100017505
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10001d120]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100017527
mov rax, qword [rsp + 0x88]
mov qword [0x10001d218], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10001d1b8], rax
mov rax, qword [0x10001d218]
mov qword [0x10001d090], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10001d1a0], rax
mov dword [0x10001d080], 0xc0000409
mov dword [0x10001d084], 1
mov rax, qword [0x10001a100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10001a108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000015d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x10001731c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100017369
cmp rcx, 0xffffffffffffffff
je 0x100017369
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100017361
cmp dword [rcx + 0x3c], edx
jl 0x100017361
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100017361
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100017369
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001565
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov ebx, edx
mov ecx, 0x40000
xor edx, edx
mov rbp, r8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, 0xa
xor edx, edx
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, rax
test ebx, ebx
jle 0x1400015b1
movsxd r9, ebx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov r8, rax
xor eax, eax
cmp ebx, eax
jle 0x1400015cd
mov rdx, rax
and edx, 7
mov dl, byte [rbp + rdx]
xor dl, byte [rdi + rax]
mov byte [r8 + rax], dl
inc rax
jmp 0x1400015b3
mov rcx, r8
mov r9, r8
lea r8, [0x140001530]
call fcn.140001533
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001630
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r8d, r8d
mov r9d, 1
mov rdi, rcx
mov esi, edx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x4c], edx
mov edx, 2
mov qword [rsp + 0x38], rcx
lea rcx, [0x14000c040]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400016cf
xor edx, edx
mov rcx, rbx
lea rbp, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1400016cf
test esi, esi
jle 0x1400016b9
xor eax, eax
mov r9, rbp
mov r8d, esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400016c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400016cf
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub esi, edx
jmp 0x140001698
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400016f6
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov rdi, rcx
mov ebx, edx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x4c], edx
mov edx, 0x80000000
lea rbp, [rsp + 0x4c]
mov qword [rsp + 0x30], rcx
lea rcx, [0x14000c040]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
xor eax, eax
cmp rsi, 0xffffffffffffffff
je 0x140001787
test ebx, ebx
jle 0x14000176c
xor eax, eax
mov r9, rbp
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000177c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001787
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub ebx, edx
jmp 0x14000174b
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400017e8
Capabilities:
Create thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [str.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]
movsxd rcx, dword [rsi + 4]
call sub.msvcrt.dll_malloc
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, rax
mov ecx, 0x400
call rdi
mov edx, dword [rsi + 4]
mov rcx, rbx
call fcn.1400016f6
test eax, eax
je 0x1400017b1
mov edx, dword [rsi + 4]
lea r8, [rsi + 8]
mov rcx, rbx
call fcn.140001565
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov r8d, 0x5c
lea rcx, [0x14000c040]
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cnetsvc_d
call fcn.140001600
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor r9d, r9d
lea r8, [0x1400016d8]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x140001790

Function at 0x140001b50
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.1400077e0
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.1400077e0
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 0x140001bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c0f4]
mov rbx, rcx
test esi, esi
jle 0x140001cf0
mov rax, qword [0x14000c0f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001bf0
mov rcx, rbx
call fcn.140002610
mov rdi, rax
test rax, rax
je 0x140001d12
mov rax, qword [0x14000c0f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002750
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ca0
add dword [0x14000c0f4], 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 [0x14000c0f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b50
nop dword [rax]
xor esi, esi
jmp 0x140001c18
mov rax, qword [0x14000c0f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001b50
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001b50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c140]
test rbx, rbx
je 0x1400022dc
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 eax, eax
jne 0x1400022d3
test rsi, rsi
je 0x1400022d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]