joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006f990
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1800a2040]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1800a62c0], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x18006f9e5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800613b0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1800a62c0], rax
mov rcx, rax
test rax, rax
jne 0x18006fa15
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x18006f9f0
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x18006fa44
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.180065830
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800613b0
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a62c0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1800a62c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a62c0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1800a62d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a62c0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1800a62d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a62c0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1800a62e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a62c0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1800a62e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a62c0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1800a62f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1800a62c8], 0
mov qword [0x1800a62f8], rax
je 0x18006fb35
cmp qword [0x1800a62d8], 0
je 0x18006fb35
cmp qword [0x1800a62e0], 0
je 0x18006fb35
cmp qword [0x1800a62e8], 0
je 0x18006fb35
cmp qword [0x1800a62f0], 0
je 0x18006fb35
test rax, rax
jne 0x18006f9ce
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.180065830
mov rcx, qword [0x1800a62c0]
test rcx, rcx
je 0x18006fb63
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1800a62c0], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800613b0
add rsp, 0x48
ret

Function at 0x180015610
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x23
syscall
ret
Function at 0x1400111e5
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret

Function at 0x140011258
Capabilities:
Create process on windows

Disassembly:
jmp 0x140011780
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14002109f]
call fcn.140011357
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.https:__www.youtube.com_watch_vBBJa32lCaaY
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140011262
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012c20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012c40
xor al, al
jmp 0x140012cc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012c53
xor al, al
jmp 0x140012cc1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012c7d
xor al, al
jmp 0x140012cc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012c91
xor al, al
jmp 0x140012cc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012ca3
xor al, al
jmp 0x140012cc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012cbf
xor al, al
jmp 0x140012cc1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400012ec
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x120
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, qword [rbx + 0x20]
mov edx, 9
mov rbp, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
lea rdx, [rsp + 0x50]
lea r8d, [rdi + 0x64]
mov rcx, rbp
mov rsi, rax
mov word [rsp + 0x50], di
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x130]
mov dword [rsp + 0x130], edi
mov dword [rsp + 0x134], edi
call qword [sym.imp.USER32.dll_ClientToScreen]
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400f3900
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov edi, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x4c]
mov dword [rsp + 0x30], 4
sub edi, r8d
sub r8d, dword [rsp + 0x130]
sub ebx, r9d
sub r9d, dword [rsp + 0x134]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x44], r9d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x40]
mov r9d, edi
mov rcx, rsi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_MoveWindow]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000480c
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, esi
cmp rcx, rsi
je 0x140004832
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edx, [rbx + 0x2d0]
mov rcx, rdi
movsxd rdx, edx
call fcn.14005fb18
cmp ebx, esi
jg 0x1400048e1
mov rax, qword [rdi]
lea rcx, [0x14010d8c0]
mov r8d, 0x208
mov word [rax], si
mov rdx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x1400048c6
mov rdx, qword [rdi]
lea rcx, [0x14010d8b0]
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x1400048c6
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
cmp ebx, esi
jle 0x1400048e1
mov rax, qword [rdi]
lea rdx, [0x14010d8a0]
lea rcx, [rax + rbx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
add ebx, 5
cmp ebx, esi
jle 0x1400048e1
mov rax, qword [rdi]
movsxd rcx, ebx
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov rax, qword [rdi]
inc ebx
movsxd rcx, ebx
mov word [rax + rcx*2], si
mov rdx, qword [rdi]
lea rcx, [0x14012d0c0]
call fcn.140026924
cmp ebx, esi
jle 0x140004900
mov rcx, qword [rdi]
call fcn.1400f2c08
cmp eax, esi
jne 0x14000493c
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
lea rdx, str.TEMP_
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rdi]
lea rcx, [0x14012d0c0]
call fcn.140026924
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004f54
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea rcx, str.LC_ALL
lea r8d, [rbx + 0x20]
mov word [rsp + 0x20], bx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx r11d, word [rsp + 0x20]
cmp r11w, bx
jne 0x140004fa0
lea r9d, [rbx + 0x20]
lea r8, [rsp + 0x20]
lea edx, [rbx + 0xb]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r11w, word [rsp + 0x20]
lea rax, [rsp + 0x20]
cmp r11w, bx
lea rdx, [0x14010da98]
lea rcx, [0x14012ca60]
cmovne rdx, rax
call fcn.14006adb0
mov rcx, qword [0x14012ca60]
call fcn.140060d9c
movzx ecx, word [0x14012c96c]
cmp eax, 1
cmovg cx, ax
mov word [0x14012c96c], cx
add rsp, 0x70
pop rbx
ret

Function at 0x1400050fc
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400050f0
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400050e7
mov edx, 1
mov ecx, 0x233
call rdi
mov edx, 1
lea ecx, [rdx + 0x49]
call rdi
mov edx, 1
lea ecx, [rdx + 0x48]
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x14012a340], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x14012a350], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp qword [0x14012d2d8], 0
mov qword [0x14012a348], rax
jne 0x140005162
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x14012d2d8], rax
and qword [0x14012cae0], 0
lea rax, [0x14012cae0]
mov qword [0x14012d110], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [0x14012c934], eax
call fcn.140017930
add rsp, 0x28
jmp 0x140005090
Function at 0x140005194
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
lea rcx, [rax + 0x10]
xor ebx, ebx
mov dword [rax + 0x10], 8
mov dword [rax + 0x14], ebx
call qword [sym.imp.USER32.dll_GetLastInputInfo]
mov edx, dword [0x14012c9f4]
mov eax, dword [rsp + 0x3c]
sub eax, edx
cmp eax, ebx
cmovg edx, dword [rsp + 0x3c]
mov dword [0x14012c9f4], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012c9f4], eax
mov al, byte [0x14012a25f]
cmp al, bl
jle 0x14000522d
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x3c], ebx
call qword [sym.imp.USER32.dll_GetLastInputInfo]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, dword [rsp + 0x3c]
mov ecx, eax
sub ecx, r8d
cmp ecx, edi
jb 0x140005216
mov edx, dword [0x14012c9f4]
sub eax, edx
cmp eax, edi
jae 0x140005238
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11b, byte [0x14012a25f]
cmp r11b, bl
jg 0x1400051e7
mov r8d, dword [rsp + 0x3c]
mov edx, dword [0x14012c9f4]
mov ecx, r8d
sub ecx, edx
cmp ecx, ebx
mov cl, byte [0x14012a25f]
cmovg edx, r8d
cmp cl, bl
setg bl
mov dword [0x14012c9f4], edx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000528c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x98
lea rdx, [rsp + 0x20]
lea rcx, str.DEBUGMDG
mov r8d, 0x63
mov byte [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
movzx r11d, byte [0x14012c9f0]
cmp byte [rsp + 0x20], 0x31
mov eax, 1
cmove r11d, eax
mov byte [0x14012c9f0], r11b
add rsp, 0x98
ret

Function at 0x140005534
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], rcx
mov rsi, rdx
xor r9d, r9d
xor edx, edx
or rcx, 0xffffffffffffffff
mov r8d, 0x8000004
mov dword [rax - 0x18], 0x64
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1400055c3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1400055c3
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x64]
call fcn.1400052d8
mov dword [rbx], 0xffffffff
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 8]
mov qword [0x14012a050], rcx
mov qword [0x14012ca10], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140005604
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov al, byte [0x14012a25f]
mov ebx, 0x14
cmp al, 2
je 0x140005621
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x14012ca10]
mov ecx, 0x1e
test rax, rax
cmovne ebx, ecx
jmp 0x14000564c
mov rax, qword [0x14012c9f8]
test rax, rax
je 0x140005651
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x140005635
mov rcx, qword [0x14012c9f8]
test rcx, rcx
je 0x140005670
xor edx, edx
mov qword [0x14012c9f8], 0
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x14012a25f], 0xff
add rsp, 0x20
pop rbx
ret
Function at 0x140005680
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ecx, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x64
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov bl, 1
mov rdi, rax
test rax, rax
je 0x1400056df
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400056f7
xor bl, bl
jmp 0x1400056f7
mov r8, rbp
xor edx, edx
mov ecx, 0x8000004
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x140005748
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [0x14012ca20], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [0x14012ca20]
test r11, r11
je 0x140005748
test bl, bl
je 0x140005745
xor edx, edx
mov rcx, r11
lea r8d, [rdx + 0x64]
call fcn.1400f3900
mov r11, qword [0x14012ca20]
mov qword [r11], rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007ba0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x130
lea rdx, str.PECMD:MSGSVR:HWND
xor ecx, ecx
call fcn.140005680
call fcn.140004f54
mov byte [0x14012c96f], 1
call fcn.1400f0318
call fcn.140059ba4
lea rcx, str.TaskbarButtonCreated
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x24]
xor ecx, ecx
mov byte [rsp + 0x20], 0
mov dword [0x14012c9d4], eax
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdx, str.System32Kernel32
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.user32
mov rbx, rax
mov qword [0x14012cf88], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.GDI32
mov qword [0x14012cf80], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x14010dfe0]
mov rcx, rbx
mov qword [0x14012cf90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsx edx, byte [0x14012a009]
lea rbx, [0x14012d0c0]
lea r8, str.bX64
mov qword [0x14012c970], rax
mov rcx, rbx
call fcn.140062c80
lea r8, str.ptrlen
mov edx, 8
mov rcx, rbx
call fcn.140062c80
mov edx, dword [0x14012c9d4]
lea r8, str.WM_TASKBARBUTTONCREATED
mov rcx, rbx
call fcn.140062c80
add rsp, 0x130
pop rbx
ret
Function at 0x140007cb0
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov qword [rsp + 0x70], rcx
movzx edi, word [rcx]
add rcx, 8
mov ebp, 0x20
mov qword [rsp + 0x70], rcx
lea r12d, [rbp - 0x17]
cmp r12w, word [rcx]
ja 0x140007ce3
cmp word [rcx], 0xd
jbe 0x140007cf1
cmp bp, word [rcx]
je 0x140007cf1
add rcx, 2
mov qword [rsp + 0x70], rcx
call fcn.14000528c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
xor esi, esi
mov dword [0x14012c9f4], eax
mov qword [rsp + 0x80], rsi
call fcn.14006ac98
lea rcx, [rsp + 0x78]
call fcn.14005fa18
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
lea rcx, [0x14012d0c0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
call fcn.1400742a0
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.14006adb0
mov r11, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], r11
call fcn.140057768
lea rcx, [rsp + 0x88]
call fcn.140057768
mov rcx, qword [rsp + 0x70]
call fcn.140005264
lea r8d, [rsi + 0xf]
lea rcx, str._InstallService
mov rdx, rax
mov rbx, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, esi
jne 0x140007df4
movzx eax, word [rbx + 0x1e]
cmp r12w, ax
ja 0x140007db9
cmp ax, 0xd
jbe 0x140007dc3
cmp bp, ax
je 0x140007dc3
cmp ax, si
jne 0x140007df4
mov rcx, qword [rsp + 0x70]
lea rdx, str._Service
mov r8d, 0x1e
mov bl, 0x49
call fcn.14001c8fc
mov rcx, qword [rsp + 0x70]
add rcx, 0x1e
call fcn.140005264
mov rdx, rax
mov qword [rsp + 0x70], rax
jmp 0x140007e1b
lea rdx, [rsp + 0x70]
lea rcx, [0x14010e078]
mov r8d, 8
call fcn.1400623c0
cmp al, sil
je 0x140007ea4
mov rdx, qword [rsp + 0x70]
mov bl, 0x53
mov r13d, 0x22
cmp r13w, di
jne 0x140007e6c
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x70]
movsxd rcx, eax
lea rax, [rdx + rcx*2 - 2]
cmp rax, rdx
jbe 0x140007e6c
cmp r12w, word [rax]
ja 0x140007e4e
cmp word [rax], 0xd
jbe 0x140007e53
cmp bp, word [rax]
jne 0x140007e59
sub rax, 2
jmp 0x140007e3d
cmp rax, rdx
jbe 0x140007e6c
cmp r13w, word [rax]
jne 0x140007e6c
mov word [rax], si
mov rdx, qword [rsp + 0x70]
sub rdx, 2
movsx eax, bl
mov ecx, 0x7e
mov qword [rsp + 0x70], rdx
mov word [rdx], ax
mov rax, qword [rsp + 0x70]
sub rax, 2
mov qword [rsp + 0x70], rax
mov word [rax], cx
mov rcx, qword [rsp + 0x70]
call fcn.1400164b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rsp + 0x70]
lea rcx, str._RemoveService
mov r8d, 0xe
call fcn.1400623c0
cmp al, sil
je 0x140007ed3
mov rcx, qword [rsp + 0x70]
call fcn.14000830c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x80]
call fcn.140057768
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000830c
Capabilities:
Delete service
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x850
movzx eax, word [rcx]
mov ebp, 0x20
mov rdi, rcx
mov rdx, rcx
xor esi, esi
lea r12d, [rbp - 0x17]
jmp 0x140008356
cmp r12w, ax
ja 0x14000834a
cmp ax, 0xd
jbe 0x14000835b
cmp bp, ax
je 0x14000835b
add rdi, 2
mov ax, word [rdi]
cmp ax, si
jne 0x14000833e
mov rax, rdi
sub rax, rcx
mov ecx, 0x400
sar rax, 1
cmp eax, ecx
cmovg eax, ecx
lea rcx, [rsp + 0x40]
cdqe
lea rbx, [rax + rax]
mov r8, rbx
call fcn.14001c8fc
mov word [rsp + rbx + 0x40], si
cmp r12w, word [rdi]
ja 0x140008392
cmp word [rdi], 0xd
jbe 0x140008397
cmp bp, word [rdi]
jne 0x14000839d
add rdi, 2
jmp 0x140008386
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
cmp rax, rsi
je 0x14000840d
lea rdx, [rsp + 0x40]
mov r8d, 0x10020
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rsi
je 0x14000840d
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, 0xc8
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140008413
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x14000a478
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov bpl, dl
xor edx, edx
mov sil, r9b
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx]
mov qword [0x14012c9f8], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
test rdi, rdi
je 0x14000a4dd
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000a4dd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi], 0
test sil, sil
je 0x14000a4f3
lea rcx, str.shutdown__a
mov r8b, 1
xor edx, edx
call fcn.140007ef0
mov rcx, qword [0x14012cab0]
call fcn.140005464
test bpl, bpl
je 0x14000a521
mov ebx, 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x14000a509
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret