joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003688
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1400036b4
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rdx, str.Zoom
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.SHLWAPI.dll_PathAppendW]

Function at 0x1400036cc
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000370f
test rdx, rdx
je 0x14000370f
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14000370f
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x140003711
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140003ad8
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1400591f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x20]
call fcn.140003658
test eax, eax
je 0x140003b57
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003b57
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003b34
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x140003b4c
xor r8d, r8d
lea rdx, [fcn.140002670]
lea rcx, [rsp + 0x20]
call fcn.140002974
test eax, eax
je 0x140003b57
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001c780
add rsp, 0x248
ret

Function at 0x140008ac8
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x140008c57
cmp ecx, 0x7c
je 0x140008c57
cmp ecx, 0x29
jne 0x140008b10
cmp dword [rbx + 0x1c], 0
jne 0x140008c57
test dword [rbx + 0x80], 0x10000000
je 0x140008c70
jmp 0x140008c05
cmp ecx, 0x2e
jne 0x140008b30
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14000b394
mov rcx, rbx
call fcn.14000b3ec
jmp 0x140008c45
cmp ecx, 0x5c
jne 0x140008b91
mov rcx, rbx
call fcn.14000b3ec
test byte [rbx + 0x80], 0x80
je 0x140008b84
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x140008b68
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14000b394
mov rcx, rbx
call fcn.14000b3ec
jmp 0x140008c4d
cmp al, 0x42
jne 0x140008b84
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14000b394
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x140008b5b
mov rcx, rbx
call fcn.140008c9c
jmp 0x140008c45
cmp ecx, 0x5b
jne 0x140008bb5
mov rcx, rbx
call fcn.14000b3ec
mov rcx, rbx
call fcn.140009478
cmp dword [rbx + 0x7c], 0x5d
jne 0x140008c7e
jmp 0x140008b23
cmp ecx, 0x28
jne 0x140008bd9
mov rcx, rbx
call fcn.14000b3ec
mov rcx, rbx
call fcn.14000bb40
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x140008c70
jmp 0x140008c38
cmp ecx, 0x5e
jne 0x140008be6
lea edx, [rcx - 0x5c]
jmp 0x140008b52
cmp ecx, 0x24
jne 0x140008bf3
lea edx, [rcx - 0x21]
jmp 0x140008b52
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x140008c62
cmp ecx, 0x3f
je 0x140008c62
cmp ecx, 0x7b
je 0x140008c62
cmp ecx, 0x7d
jne 0x140008c18
test dword [rbx + 0x80], 0x10000000
je 0x140008c8c
jmp 0x140008c29
cmp ecx, 0x5d
jne 0x140008c29
test dword [rbx + 0x80], 0x10000000
je 0x140008c7e
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.140008114
mov dil, 1
mov rcx, rbx
call fcn.14000b3ec
test dil, dil
je 0x140008c4d
mov rcx, rbx
call fcn.14000b43c
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x140008ada
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.14000a6e0
int3
mov edx, 5
mov rcx, rbx
call fcn.14000a6e0
int3
mov edx, 4
mov rcx, rbx
call fcn.14000a6e0
int3
mov edx, 6
mov rcx, rbx
call fcn.14000a6e0
int3
Function at 0x14000d270
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x1400591f0]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14000d32e
cmp di, word [rcx]
je 0x14000d32e
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call fcn.14001f2d0
xor r9d, r9d
lea r8d, [rdi + 0x25]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000d32e
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x14000d32a
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.downlevel
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x14000d32e
mov al, 1
jmp 0x14000d330
xor al, al
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14001c780
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret

Function at 0x14000d46c
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x390
mov rax, qword [0x1400591f0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov ebp, edx
mov r14, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d4b2
xor al, al
jmp 0x14000d598
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
xor ebx, ebx
test eax, eax
je 0x14000d58d
mov rdx, r14
lea rcx, [rsp + 0x5c]
call fcn.1400259ec
test eax, eax
jne 0x14000d576
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000d58b
test ebp, ebp
js 0x14000d526
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x20]
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x14000d526
cmp dword [rsp + 0x20], ebp
jne 0x14000d576
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x104
call fcn.14001f2d0
mov r8d, 0x104
lea rdx, [rsp + 0x270]
mov rcx, rsi
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov edx, 0x3e7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x1388
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000d4d1
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14001c780
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000d68c
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 [0x1400591f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rbx, rcx
test rcx, rcx
je 0x14000d789
cmp si, word [rcx]
je 0x14000d789
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x14000d784
call fcn.14000d174
cmp eax, 0x3d
jg 0x14000d784
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14001f2d0
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
je 0x14000d784
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x14000d722
lea rax, [rdx + 2]
add rcx, rax
cmp rcx, rbp
ja 0x14000d784
lea ecx, [rdx - 1]
mov eax, 0x5c
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x14000d766
mov eax, 0x2f
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x14000d766
lea r8, [0x14004144c]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.1400268d0
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.1400268d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rax, rdi
jmp 0x14000d78b
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001c780
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 0x14000fec0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400591f0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rbp - 0x40], r14d
mov r8, qword [rdx + 0x10]
test r8, r8
jne 0x140010000
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x20], r14
lea edi, [r14 + 7]
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x30], r14w
mov dword [rbp - 0x40], 1
mov qword [rbp - 0x38], r14
lea r9, [rbp - 0x38]
xor edx, edx
lea rcx, [0x140043340]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000ff55
mov rdx, qword [rbp - 0x38]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14000ff38
lea rcx, [rbp - 0x30]
call fcn.140002334
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rbx, [rsi + 0xd0]
lea rax, [rbp - 0x30]
cmp rbx, rax
je 0x14000ff8b
mov rcx, rbx
call fcn.1400022cc
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x30], r14w
jmp 0x14000ff8f
mov rdi, qword [rbp - 0x18]
cmp rdi, 8
jb 0x14000ffcb
lea rdx, [rdi*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ffc6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001008e
call fcn.14001c7a0
cmp qword [rsi + 0xe0], r14
je 0x14001001e
mov r8d, 1
lea rdx, [0x14004144c]
mov rcx, rbx
call fcn.14000bc84
mov r8d, 4
lea rdx, str.Zoom
mov rcx, rbx
call fcn.14000bc84
jmp 0x14001001e
lea rbx, [rcx + 0xd0]
cmp rbx, rdx
je 0x14001001e
cmp qword [rdx + 0x18], 8
jb 0x140010016
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.140002334
lea rdi, [rsi + 0xf0]
cmp rdi, rbx
je 0x140010043
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140010037
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.140002334
mov r8d, 6
lea rdx, [0x140042568]
mov rcx, rdi
call fcn.14000bc84
mov r8d, 0xb
lea rdx, str.Zoom.us.ini
mov rcx, rdi
call fcn.14000bc84
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001c780
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140026b98
int3

Function at 0x140011934
Capabilities:
Query service status

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400591f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14001197b
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14001197b
mov eax, dword [rsp + 0x54]
jmp 0x14001197d
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001c780
add rsp, 0x78
ret
Function at 0x140011ac4
Capabilities:
Query service status

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400591f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x140011af4
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140011af4
mov eax, dword [rsp + 0x24]
jmp 0x140011af6
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001c780
add rsp, 0x58
ret

Function at 0x140011b08
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400591f0]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
and dword [rsp + 0x30], 0
lea rcx, str.Wtsapi32.dll
mov rsi, r9
mov dword [rsp + 0x38], edx
mov rbx, r8
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor dil, dil
lea r8, [rsp + 0x30]
lea rdx, str.WTSQueryUserToken
call fcn.14001164c
cmp dword [rsp + 0x30], 0
je 0x140011c1b
test rbx, rbx
je 0x140011c1b
lea rdx, str.Zoom
mov rcx, rbx
call fcn.140027d08
test eax, eax
je 0x140011ba9
lea rdx, str.ZoomRooms
mov rcx, rbx
call fcn.140027d08
test eax, eax
jne 0x140011c1b
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14001f2d0
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140011c1b
test rsi, rsi
je 0x140011c1b
mov edi, 0x104
lea r8, [0x14004144c]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1400268d0
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, edi
call fcn.1400268d0
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rsi
call fcn.140026c10
mov dil, 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011c2b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14001c780
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011e58
Capabilities:
Create service
Modify service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1400591f0]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
mov r15d, 0x208
mov r8d, r15d
lea rcx, [rbp + 0x1d0]
xor edx, edx
mov rdi, r9
call fcn.14001f2d0
mov r8d, r15d
lea rcx, [rbp - 0x40]
xor edx, edx
call fcn.14001f2d0
or rax, 0xffffffffffffffff
lea r15, [rbx + 0x70]
xor r12d, r12d
inc rax
cmp word [r15 + rax*2], r12w
jne 0x140011ebf
test rax, rax
je 0x140011fe5
test rsi, rsi
je 0x140011fe5
test r14, r14
je 0x140011fe5
lea rcx, [rbp - 0x40]
call fcn.140002cc4
test eax, eax
je 0x140011fe5
mov ebx, 0x40
lea rcx, [rbp - 0x80]
mov r8d, ebx
xor edx, edx
call fcn.14001f2d0
mov r8d, ebx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.14000c784
test al, al
je 0x140011fe5
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], r12d
lea rdx, str.6.2.10.50536
lea rcx, [rbp - 0x80]
call fcn.14000dc24
test al, al
je 0x140011fe5
cmp dword [rsp + 0x70], r12d
jl 0x140011fe5
test rdi, rdi
je 0x140011f6c
mov r9, rdi
lea r8, [rbp - 0x40]
lea rdx, str.__s___s
lea rcx, [rbp + 0x1d0]
call fcn.140006478
mov edi, 2
xor edx, edx
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140011fe5
mov qword [rsp + 0x60], r12
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x58], r12
mov r9d, 0xf01ff
mov qword [rsp + 0x50], r12
mov r8, r14
mov qword [rsp + 0x48], r12
mov rdx, r15
mov qword [rsp + 0x40], r12
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140012008
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14001c780
add rsp, 0x4f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140011fe7

Function at 0x1400120e4
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
xor ebx, ebx
test eax, eax
je 0x14001212a
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140011ac4
inc ebx
cmp eax, 4
je 0x140012127
cmp ebx, 0x64
jl 0x140012105
cmp eax, 4
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140012214
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
or rax, 0xffffffffffffffff
lea rbx, [rcx + 0x70]
xor edi, edi
inc rax
cmp word [rbx + rax*2], di
jne 0x140012228
test rax, rax
je 0x140012278
call fcn.140011d88
test al, al
jne 0x140012243
mov al, 1
jmp 0x140012278
mov r9d, 0xf01ff
lea rcx, [rsp + 0x20]
mov r8d, 2
mov rdx, rbx
call fcn.140011740
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
lea rcx, [rsp + 0x20]
setne bl
call fcn.14001179c
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400155cc
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14001573e
cmp si, word [rdx]
je 0x14001573e
cmp qword [rcx + 8], rsi
je 0x140015600
call fcn.1400154e0
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbx], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14001573e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0x40
jb 0x14001573e
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rbx + 0x18], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14001573e
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rdx, rax
test rax, rax
je 0x14001573e
lea r8, [rdi + rax]
mov qword [rbx + 0x10], r8
cmp dword [rax + 0x3c], 0x40
jb 0x14001573e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0xf8]
cmp r8, rax
jb 0x14001573e
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14001573e
cmp dword [rcx], 0x4550
jne 0x14001573e
mov eax, 0x14c
cmp word [rcx + 4], ax
je 0x140015717
mov eax, 0x8664
cmp word [rcx + 4], ax
je 0x14001570e
mov eax, 0xaa64
cmp word [rcx + 4], ax
jne 0x14001573e
mov dword [rbx + 0x30], 3
lea rax, [rcx + 0x108]
jmp 0x140015725
mov dword [rbx + 0x30], 2
jmp 0x140015705
mov dword [rbx + 0x30], 1
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x28], rax
movzx ecx, word [rcx + 6]
lea rdx, [rcx + rcx*4]
lea rcx, [rax + rdx*8]
cmp r8, rcx
jb 0x14001573e
mov al, 1
jmp 0x140015748
mov rcx, rbx
call fcn.1400154e0
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140015878
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x40
mov r14d, edx
mov rbx, rcx
add rcx, 0x38
cmp dword [rcx + 0x28], 0
je 0x1400158a7
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor dil, dil
mov byte [rsp + 0x30], dil
cmp qword [rbx + 8], 0
jne 0x140015905
mov rcx, qword [rbx]
xor edx, edx
mov rsi, r14
test rcx, rcx
je 0x1400158df
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rbx + 8], rax
test rdx, rdx
je 0x140015905
shr rsi, 1
mov al, byte [rsi + rdx]
mov byte [rsi + rdx], al
lea eax, [r14 - 1]
mov ecx, eax
mov al, byte [rax + rdx]
mov byte [rcx + rdx], al
mov dword [rbx + 0x14], r14d
mov dil, 1
mov byte [rsp + 0x30], dil
jmp 0x140015915
lea rcx, [rbx + 0x38]
cmp dword [rcx + 0x28], 0
je 0x140015925
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, dil
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400163e8
Capabilities:
Read .ini file

Disassembly:
mov r11d, r9d
mov r10, r8
lea r9, [rcx + 8]
mov rax, rdx
cmp qword [r9 + 0x18], 8
jb 0x1400163ff
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x140016409
mov r10, qword [r8]
cmp qword [rdx + 0x18], 8
jb case.default.0x14001641c
mov rax, qword [rdx]
mov r8d, r11d
mov rdx, r10
mov rcx, rax
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al

Function at 0x140016424
Capabilities:
Read .ini file

Disassembly:
push rbx
add rcx, 8
mov r10, r9
mov r11, r8
mov rbx, rdx
cmp qword [rcx + 0x18], 8
jb case.default.0x140016459
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x38]
mov r8, r10
mov r9, qword [rsp + 0x30]
mov rdx, r11
mov qword [rsp + 0x38], rcx
mov rcx, rbx
mov dword [rsp + 0x30], eax
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
Function at 0x140016908
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rcx], 0
mov rbx, rcx
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 0x28], 0
and qword [rcx + 0x30], 0
and qword [rcx + 0x38], 0
lea rcx, str.crypt32.dll
call fcn.14000d68c
mov rdi, rax
test rax, rax
je 0x140016a07
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFindCertificateInStore
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertGetNameStringW
mov rcx, rdi
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptDecodeObject
mov rcx, rdi
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgGetParam
mov rcx, rdi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptQueryObject
mov rcx, rdi
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ac28
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov dil, r9b
mov rax, rdx
mov r9, qword [rcx + 0x18]
mov rbx, rcx
test r9, r9
je 0x14001ac62
movsxd r8, r8d
mov edx, 1
mov rcx, rax
call fcn.1400275f8
test dil, dil
je 0x14001ac62
mov rcx, qword [rbx + 0x18]
call fcn.14002834c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret