joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000a89c
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8c0
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp dword [0x10001d0cc], 0xffffffff
mov ebx, eax
jne 0x10000a986
lea rax, [rsp + 0x30]
lea rdx, [0x100002960]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x10001d0cc], ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10000a986
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x1000029c0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x48], 0x28
mov dword [rsp + 0x38], 0x50
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x10000a969
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
and ecx, 3
mov dword [0x10001d0cc], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0x28
jle 0x10000a986
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x10001d0cc]
and eax, 3
cmp al, bpl
je 0x10000a9f9
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x800
mov word [rsp + 0xa0], bp
call sub.msvcrt.dll_memset
mov edx, 0x401
lea rcx, [rsp + 0xa0]
cmp edi, ebp
je 0x10000a9d8
lea r8, [0x1000029d0]
mov r9d, edi
mov qword [rsp + 0x20], rsi
call fcn.100004fe0
jmp 0x10000a9e7
lea r8, [0x1000029f8]
mov r9, rsi
call fcn.100004fe0
cmp eax, ebp
jl 0x10000a9f9
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.100017610
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000aae8
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 [0x10001db60]
lea rdx, [0x10001d720]
xor esi, esi
mov r8d, 0x103
mov word [0x10001d926], si
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
jne 0x10000ab41
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000abbe
mov word [0x10001d926], si
mov edi, esi
lea rbx, [0x10001be30]
cmp qword [0x10001be38], rsi
je 0x10000ab9f
mov r12d, 0x401
cmp qword [rbx], rsi
jne 0x10000ab95
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 0x10000ab8a
mov qword [rsp + 0x20], rax
call fcn.100004fe0
jmp 0x10000ab8f
call fcn.100004fe0
cmp eax, esi
jge 0x10000abe8
inc edi
add rbx, 0x30
cmp qword [rbx + 8], rsi
jne 0x10000ab60
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a6a0]
neg edi
sbb eax, eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.100017610
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 0x10000ac26
inc edi
mov r8, qword [rbx + 0x20]
cmp r8, rsi
je 0x10000ac83
mov r9, qword [rbx + 0x28]
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.100004fe0
add rbx, 0x30
cmp eax, esi
jl 0x10000ac7f
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 0x10000ac87
inc edi
jmp 0x10000ac87
add rbx, 0x30
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10000ab99
Function at 0x10000aca0
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 [0x10001be38], 0
lea rbx, [0x10001be38]
je 0x10000ad80
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 0x10000acf6
mov qword [rsp + 0x20], rax
call fcn.100004fe0
jmp 0x10000acfb
call fcn.100004fe0
test eax, eax
js 0x10000adb1
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 0x10000ad72
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 0x10000ad61
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 0x10000acd0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a6a0]
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.100017610
add rsp, 0x860
pop rbx
ret
mov eax, 0x80004005
jmp 0x10000ad98
Function at 0x10000b6a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jb 0x10000b6e9
cmp al, 6
jb 0x10000b6e9
lea rcx, [0x100002b18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x10000b6e9
lea rdx, [0x100002b38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x10000b6e9
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rax
add rsp, 0x28
ret
Function at 0x10000df60
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 0x10000e0b7
lea rdx, [0x1000016a0]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x10000e083
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 0x10000e024
mov dword [rsp + 0x24], 4
jmp 0x10000dff7
mov eax, esi
inc esi
cmp eax, 5
jge 0x10000e014
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x10000e018
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 0x10000dfe5
mov eax, dword [rsp + 0x24]
cmp eax, 1
je 0x10000e062
mov ebx, 0x80004005
jmp 0x10000e078
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ebx, eax
sub edx, 0x41c
je 0x10000e059
sub edx, 8
je 0x10000e055
sub edx, 2
je 0x10000e055
cmp edx, 0xf
je 0x10000e055
lea rcx, [0x1000031c0]
mov edx, eax
call fcn.10000a89c
jmp 0x10000e05e
xor ebx, ebx
jmp 0x10000e062
mov ebx, 0x652
test ebx, ebx
jne 0x10000e078
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, 1
je 0x10000e078
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000e0ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov ebx, eax
sub ecx, 0x424
je 0x10000e0aa
cmp ecx, 0xc
je 0x10000e0aa
lea rcx, [0x1000031f0]
mov edx, eax
call fcn.10000a89c
jmp 0x10000e0ac
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000e0cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100003218]
mov edx, eax
mov ebx, eax
call fcn.10000a89c
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 0x10000e0ec
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 0x10000e161
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000e355
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.100004ea8
cmp eax, r12d
jl 0x10000e355
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 0x10000e212
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 0x10000e34b
mov ebx, r12d
cmp edi, r12d
je 0x10000e241
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 0x10000e2ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x430
jne 0x10000e340
mov ecx, edi
inc edi
cmp ecx, 0xe
jge 0x10000e340
mov esi, 0x20
jmp 0x10000e22e
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 0x10000e317
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 [0x10001a5c8]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000e353
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.100017610
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 0x10000e518
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 0x10000e569
cmp eax, 2
sete al
jmp 0x10000e697
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 0x10000e5be
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.10000e518
cmp al, sil
je 0x10000e65a
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 0x10000e599
mov rcx, qword [rsp + 0x48]
cmp eax, 0x103
jne 0x10000e65f
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 0x10000e67f
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.100004fe0
cmp eax, esi
jl 0x10000e665
lea rcx, [rsp + 0x450]
mov edx, ebx
call fcn.10000a89c
jmp 0x10000e665
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x58], ebp
jle 0x10000e67b
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x10000e67b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x10000e697
cmp dword [rsp + 0x58], ebp
jle 0x10000e695
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x10000e695
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.100017610
mov rbx, qword [rsp + 0xca0]
add rsp, 0xc70
pop rdi
pop rsi
pop rbp
ret
Function at 0x100016fe0
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 0x100017058
cmp word [rbx], di
je 0x100017058
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x100017058
cmp word [rbx], 0x7f
jae 0x10001704d
cmp word [rbx + 2], 0x3a
je 0x1000170c2
cmp word [rbx], bp
jne 0x100017058
cmp word [rbx + 2], bp
je 0x1000170c2
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x1000170c2
lea ecx, [rax + 2]
cmp ecx, esi
ja 0x1000170c2
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.100004ea8
cmp eax, edi
jl 0x1000170c2
lea r8, [0x100004d60]
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.100004ea8
cmp eax, edi
setge al
cmp al, dil
je 0x1000170c2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1000170c4
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.100017610
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 0x1000171e8
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, MsiBeginTransactionA
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], MsiBeginTransactionA
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x10001724f
cmp dword [rsp + 0x24], 5
ja 0x100017240
jne 0x10001724f
cmp dword [rsp + 0x28], 1
jb 0x10001724f
lea rcx, [0x100003c38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x10001725b
lea rcx, [0x100003c38]
call fcn.100016fe0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.100017610
add rsp, 0x158
ret
Function at 0x100017610
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10001a100]
jne 0x10001762b
rol rcx, 0x10
test cx, 0xffff
jne 0x100017627
ret 0
ror rcx, 0x10
jmp 0x100017a5c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10001d1b0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10001d2a8]
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 0x100017ae1
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, [0x10001d1b0]
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 0x100017b03
mov rax, qword [rsp + 0x88]
mov qword [0x10001d2a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10001d248], rax
mov rax, qword [0x10001d2a8]
mov qword [0x10001d120], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10001d230], rax
mov dword [0x10001d110], 0xc0000409
mov dword [0x10001d114], 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 0x1000178f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100017945
cmp rcx, 0xffffffffffffffff
je 0x100017945
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10001793d
cmp dword [rcx + 0x3c], edx
jl 0x10001793d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10001793d
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 0x100017945
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14001d950
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor esi, esi
mov r14, rdx
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rsp + 0x30], rsi
jb 0x14001d98b
mov rdx, qword [rcx]
jmp 0x14001d98e
mov rdx, rcx
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x208
lea rdx, [rsp + 0x40]
rep stosb byte [rdi], al
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14001d9d0
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x14008a940]
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, [0x14008a968]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14001da60
mov rdx, qword [rbx]
inc r8
call fcn.140022b80
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x14001da76
mov rbx, qword [rbx]
mov word [rbx], si
mov r8, qword [r14 + 0x18]
cmp r8, 8
jb 0x14001da8e
mov rdx, qword [r14]
inc r8
call fcn.140022b80
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rsi
cmp qword [r14 + 0x18], 8
jb 0x14001daa9
mov rax, qword [r14]
mov word [rax], si
jmp 0x14001daad
mov word [r14], si
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400522f0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x14002c650
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x218]
sub rsp, 0x300
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rbx, rcx
lea r14, vtable.LogItem.0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x60], 7
xor esi, esi
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x74], 1
lea rdx, str._DBG___0x
lea rcx, [rsp + 0x40]
call fcn.14001ccb0
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.1400272e0
mov dword [rax + 0x48], 1
lea rdx, [0x14008c62c]
mov rcx, rax
call fcn.14001ccb0
mov rcx, rax
lea rdx, str.AcceptClientSocket_called...
call fcn.14001ccb0
nop
lea rcx, [rsp + 0x40]
call fcn.14001c830
cmp qword [rbx + 0x200], 0xffffffffffffffff
jne 0x14002c85c
mov rax, qword [rbx + 0x1f8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], 1
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x14002c71a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbx + 0x200], rax
cmp rax, 0xffffffffffffffff
jne 0x14002c71a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x74], 1
lea rdx, str._DBG___0x
lea rcx, [rsp + 0x40]
call fcn.14001ccb0
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.1400272e0
mov dword [rax + 0x48], 1
lea rdx, [0x14008c62c]
mov rcx, rax
call fcn.14001ccb0
mov rcx, rax
lea rdx, str.Socket_server_error_on_accept_operation_occured.
call fcn.14001ccb0
nop
lea rcx, [rsp + 0x40]
call fcn.14001c830
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x40], 0
mov r8d, 0x32
lea rdx, str.SocketHeciServer::SocketServer::AcceptClientSocket
lea rcx, [rbp - 0x40]
call fcn.140022620
nop
mov r8d, edi
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.140028680
lea rdx, [0x1400a3a90]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1400522f0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret