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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x178
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, dword [rsp + 0x1d0]
xor ebx, ebx
mov r13, r8
mov r12, rdx
mov rbp, rcx
mov dword [rsp + 0x50], ebx
mov edi, ebx
cmp esi, 1
je 0x140004f4b
cmp esi, 2
je 0x140004f4b
cmp esi, 4
jne 0x140004f6e
lea r8, [rsp + 0x60]
lea rdx, [0x1400757fc]
mov rcx, r9
mov edi, esi
call fcn.1400615cc
cmp eax, 1
je 0x140004f6e
xor eax, eax
jmp 0x140004fe2
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r9
repne scasb al, byte [rdi]
mov r8d, 0xff
mov rdx, r9
not rcx
mov edi, ecx
lea rcx, [rsp + 0x60]
call fcn.140060000
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, rbp
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140004fd5
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov r9d, esi
xor r8d, r8d
mov rdx, r13
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0x178
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140006160
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov ecx, SQLNumResultCols
call fcn.140060408
mov rbx, rax
test rax, rax
jne 0x140006129
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rax + 4], edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx], eax
mov rax, qword [0x1400ad728]
mov qword [rbx + 8], rax
mov qword [0x1400ad728], rbx
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400ad728]
test rbx, rbx
je 0x140006180
cmp dword [rbx + 4], ecx
je 0x14000618a
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140006172
add rsp, 0x20
pop rbx
jmp 0x140006100
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov eax, 0x10624dd3
sub r11d, dword [rbx]
mul r11d
shr edx, 6
cmp edx, 8
jae 0x1400061ae
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx], eax
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400065d0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebp, ebp
mov r12, rcx
lea r13, [0x1400ad4c0]
mov esi, ebp
mov edi, ebp
mov ebx, ebp
nop dword [rax]
cmp edi, 0xc8
ja 0x140006681
xor eax, eax
lea r8, str.User_d
lea rcx, [rsp + 0x30]
lea edx, [rax + 0xf]
mov r9d, ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.14005ff3c
lea r9, [rsp + 0x40]
lea rdx, str.AccountStatus
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], SQLNumResultCols
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140006675
lea esi, [rbx + 1]
jmp 0x140006677
inc edi
inc ebx
cmp ebx, 0x3e8
jb 0x140006610
test esi, esi
mov dword [r12], esi
setne bpl
mov eax, ebp
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005fe20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x140006720
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor eax, eax
mov ebx, ecx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x80
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call fcn.14005fe50
lea r8, str.User_d
lea rcx, [rsp + 0x30]
mov r9d, ebx
mov edx, SQLNumResultCols
call fcn.14005ff3c
lea r11, [0x1400ad4c0]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r11
lea rdx, str.UserName
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0xd0
pop rbx
ret

Function at 0x140006a30
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
xor ebx, ebx
lea rsi, [0x1400ad4c0]
nop word [rax + rax]
xor eax, eax
lea r8, str.User_d
lea rcx, [rsp + 0x30]
lea edx, [rax + 0xf]
mov r9d, ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.14005ff3c
lea r9, [rsp + 0x40]
lea rdx, str.AccountStatus
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], SQLNumResultCols
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x140006ac2
lea eax, [rbx + 1]
cmp eax, 0x3e8
jne 0x140006aee
inc ebx
cmp ebx, 0x3e8
jb 0x140006a60
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005fe20
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov dword [rdi], ebx
mov eax, 1
jmp 0x140006ace
Function at 0x140006e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rdi, r8
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140006e7a
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140006ee0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [rsp + 0x58]
mov rsi, rcx
lea rdx, str.HardwareDescriptionSystemCentralProcessor0
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140006f5d
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
lea rdx, str.MHz
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140007270
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rdi, [0x1400ad4c0]
xor eax, eax
lea r8, str.DeniedIP_d
lea rcx, [rsp + 0x30]
lea edx, [rax + 0xf]
mov r9d, ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call fcn.14005ff3c
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, str.DeniedSettings
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov dword [rsp + SQLSetConnectAttr], 0x20
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140007300
inc ebx
cmp ebx, 0x40
jb 0x140007292
or eax, 0xffffffff
jmp 0x140007302
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005fe20
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400089a0
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, rcx
lea rcx, str.Kernel32.DLL
mov rsi, rdx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140008a4c
lea rdx, str.GlobalMemoryStatusEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008a3f
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call rax
test eax, eax
je 0x140008a3f
mov rcx, qword [rsp + 0x30]
mov edi, 1
shr rcx, 0x14
mov dword [rbp], ecx
mov rcx, qword [rsp + 0x28]
shr rcx, 0x14
mov dword [rsi], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x140008a94
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov r11, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
shr r11, 0x14
shr rax, 0x14
mov dword [rbp], r11d
mov dword [rsi], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov eax, 1
add rsp, 0x60
pop rdi
ret

Function at 0x14000a1e0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400ad778], rax
test rax, rax
je 0x14000a2d3
lea rdx, str.CreateTimerQueue
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ad778]
lea rdx, str.CreateTimerQueueTimer
mov qword [0x1400969e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ad778]
lea rdx, str.DeleteTimerQueueEx
mov qword [0x1400acce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ad778]
lea rdx, str.DeleteTimerQueueTimer
mov qword [0x1400ace78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400ad778]
lea rdx, str.ChangeTimerQueueTimer
mov qword [0x1400969c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400969e0], 0
mov qword [0x1400969d0], rax
je 0x14000a2bb
cmp qword [0x1400acce8], 0
je 0x14000a2bb
cmp qword [0x1400ace78], 0
je 0x14000a2bb
cmp qword [0x1400969c0], 0
je 0x14000a2bb
test rax, rax
je 0x14000a2bb
mov eax, 1
add rsp, 0x28
ret
mov rcx, qword [0x1400ad778]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400ad778], 0
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000b840
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor eax, eax
mov rsi, rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x60], 0
call fcn.14005fe50
mov rcx, qword [0x1400ad680]
xor ebx, ebx
mov dword [rsp + 0x48], ebx
test rcx, rcx
je 0x14000b8b4
xor edx, edx
mov r8d, 0xf000
call fcn.14005fe50
mov rdi, qword [0x1400ad678]
test rdi, rdi
je 0x14000ba5f
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
test ecx, ecx
je 0x14000ba5f
lea rcx, [0x1400ace48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x1400ad678]
mov rcx, qword [0x1400ad680]
nop word [rax + rax]
movzx eax, byte [rdx]
inc rcx
inc rdx
mov byte [rcx - 1], al
test al, al
jne 0x14000b900
mov rcx, qword [0x1400ad678]
xor edx, edx
mov r8d, 0xf000
call fcn.14005fe50
lea rcx, [0x1400ace48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov byte [rsp + 0x44], bl
mov word [rsp + 0x45], ax
mov byte [rsp + 0x47], al
mov byte [rsp + 0x40], al
mov word [rsp + 0x41], ax
mov byte [rsp + 0x43], al
movzx eax, word [rsp + 0x52]
mov edx, 3
lea rcx, [rsp + 0x44]
lea r8, [0x140075fec]
movzx r9d, ax
cmp ax, 0xa
jb 0x14000b974
lea r8, [0x140075868]
call fcn.14005ff3c
movzx eax, word [rsp + 0x56]
mov edx, 3
lea rcx, [rsp + 0x40]
lea r8, [0x140075fec]
movzx r9d, ax
cmp ax, 0xa
jb 0x14000b9a0
lea r8, [0x140075868]
call fcn.14005ff3c
movzx eax, word [rsp + 0x50]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x44]
lea r8, str._s_d_s_s.kql
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r9, rsi
mov edx, 0x3ff
mov dword [rsp + 0x20], eax
call fcn.14005ff3c
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x60]
lea r8d, [r9 + 2]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ba14
xor eax, eax
jmp 0x14000ba61
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [0x1400ad680]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
lea r9, [rsp + 0x48]
repne scasb al, byte [rdi]
mov qword [rsp + 0x20], rbx
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14005fe20
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000c6e0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x14000c710
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov r8d, 0x20
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x14000c74a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000c785
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r9d, SQLSetConnectAttr
lea rcx, str.Stop_Service__c_s_c_Successfully_n
mov edx, r9d
mov r8, rsi
call fcn.140060a58
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x40
pop rsi
ret

Function at 0x14000c7d0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x14000c80e
lea rcx, str.Fail_To_Open_SC_Manager_n
call fcn.140060a58
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov r8d, 0xf01ff
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x14000c854
lea rcx, str.OpenService_Fail_n
call fcn.140060a58
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14000c8a2
mov r9d, SQLSetConnectAttr
lea rcx, str.Fail_To_Start_The_Service__c_s_c_n
mov r8, rsi
mov edx, r9d
call fcn.140060a58
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov r9d, SQLSetConnectAttr
lea rcx, str.The_Service__c_s_c_Is_Starting_n
mov r8, rsi
mov edx, r9d
call fcn.140060a58
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rsi
ret
Function at 0x14000c8f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x9c
call fcn.14005fe50
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x14000c94d
or eax, 0xffffffff
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0xe8
ret
mov qword [rsp + 0xf0], rbx
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x24]
mov qword [rsp + 0xe0], rdi
mov dword [rsp + 0x24], ebx
mov dword [rsp + 0x20], ebx
xor dil, dil
call fcn.140003c70
test al, al
je 0x14000c995
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x14000c992
cmp eax, 6
jne 0x14000c995
cmp dword [rsp + 0x20], 2
jbe 0x14000c995
mov dil, 1
cmp dword [rsp + 0x40], 2
jne 0x14000ca3a
mov eax, dword [rsp + 0x34]
cmp eax, 4
ja 0x14000c9b3
mov eax, 1
jmp 0x14000ca3c
cmp eax, 5
jne 0x14000c9df
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x14000c9c7
mov eax, 2
jmp 0x14000ca3c
cmp eax, 1
jne 0x14000c9d3
mov eax, 3
jmp 0x14000ca3c
cmp eax, 2
jne 0x14000ca3a
mov eax, 4
jmp 0x14000ca3c
cmp eax, 6
jne 0x14000ca3a
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x14000c9fc
cmp byte [rsp + 0xca], 1
setne bl
lea eax, [rbx + 5]
jmp 0x14000ca3c
cmp eax, 1
jne 0x14000ca10
cmp byte [rsp + 0xca], al
sete bl
lea eax, [rbx + 7]
jmp 0x14000ca3c
cmp eax, 2
jne 0x14000ca3a
test dil, dil
jne 0x14000ca2a
cmp byte [rsp + 0xca], 1
setne bl
lea eax, [rbx + 9]
jmp 0x14000ca3c
cmp byte [rsp + 0xca], 1
setne bl
lea eax, [rbx + 0xb]
jmp 0x14000ca3c
xor eax, eax
mov rbx, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0xe8
ret

Function at 0x14000ca70
Capabilities:
Encode data using xor

Disassembly:
cmp dword [rcx + 0x130], 0
mov rdx, rcx
jbe 0x14000cab6
xor r8d, r8d
cmp dword [rcx + 0x54], r8d
mov r9, r8
jle 0x14000caab
nop dword [rax + rax]
mov rcx, qword [rdx + 0x48]
movzx eax, byte [rdx + 0x130]
inc r8d
xor byte [rcx + r9], al
inc r9
cmp r8d, dword [rdx + 0x54]
jl 0x14000ca90
mov rax, qword [rdx + 0x48]
movsxd rcx, r8d
mov byte [rcx + rax], 0
mov eax, 1
ret

Function at 0x14000cac0
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x14000cafd
test rdx, rdx
je 0x14000cafd
xor r9d, r9d
test rdx, rdx
je 0x14000caf2
mov r8, rcx
nop word [rax + rax]
xor byte [r8], 7
inc r9d
inc r8
mov eax, r9d
cmp rax, rdx
jb 0x14000cae0
mov byte [r9 + rcx], 0
mov eax, 1
ret
xor eax, eax
ret
Function at 0x14000cec0
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x448
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x430], rax
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x400
call fcn.14005fe50
lea rdx, [0x1400ad4c0]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
lea rcx, str.GlobalSettings
lea rdx, str.DNSSERVER
xor r8d, r8d
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x14000cf71
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x440], rdi
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x30]
mov edx, edx
call fcn.14000cac0
lea rcx, [rsp + 0x30]
call fcn.14000ce20
mov rdi, qword [rsp + 0x440]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0x448
ret
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0x448
ret
Function at 0x14000dbc0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push r12
sub rsp, 0x40
xor esi, esi
movzx ebp, r8b
mov r12, rdx
lea r8, [rax - 0x30]
lea rdx, [rax + 0x20]
xor r9d, r9d
mov rbx, rcx
mov qword [rax - 0x38], rsi
mov qword [rax + 0x20], rsi
mov dword [rax - 0x30], 0x18
mov qword [rax - 0x28], rsi
mov dword [rax - 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14000dc38
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000dc18
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000dc28
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rsi
pop rbp
ret
lea r8, [rsp + 0x28]
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14000dc99
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000dc66
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000dc76
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000dc85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000dc95
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000dcd3
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x20]
movzx r9d, bpl
mov r8, r12
call fcn.14000d5c0
mov rcx, qword [rsp + 0x20]
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x10], rsi
setne sil
mov eax, esi
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rsi
pop rbp
ret

Function at 0x14000df20
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14005fe50
xor ecx, ecx
xor r11d, r11d
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + SQLDriverConnect], 0x28
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x58], r11
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x60], r11
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], cx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
add rsp, 0xe0
pop rbx
ret