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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
call fcn.010123c8
mov rcx, rbp
call fcn.01012718
mov r8d, dword [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.01021550
mov rdi, qword [rsp + 0x38]
xor esi, esi
cmp qword [rdi - 0x10], rsi
je 0x10126f4
mov rax, qword [0x01046880]
lea rdx, [0x01006608]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x30], rax
call fcn.01011648
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x01006620]
lea rcx, [rsp + 0x30]
mov r8, rdi
call fcn.01011648
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rdi, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx + 0x206]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rsi + 8]
mov rcx, rax
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x10], rax
cmp rax, rsi
je 0x10126e2
mov rcx, qword [rsp + 0x30]
lea rdx, [0x01006600]
mov r9, rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, esi
jbe 0x10126e2
mov rdi, qword [rbp + 0x10]
cmp si, word [rdi]
je 0x10126e2
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
lea esi, [rax + 1]
not rcx
dec rcx
mov dword [rbp + 8], ecx
jmp 0x10126ea
mov rcx, rbp
call fcn.01012718
lea rcx, [rsp + 0x30]
call fcn.01010940
lea rcx, [rsp + 0x38]
call fcn.01010940
mov rbp, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1012840
Capabilities:
Check mutex on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x80
xor ebx, ebx
mov ebp, r9d
mov r12, r8
mov r13, rcx
cmp rdx, rbx
je 0x1012873
or eax, 0xffffffff
jmp 0x1012a75
lea r8, [0x01006640]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20019
mov dword [0x01047b6c], ebx
mov dword [rsp + 0x20], ebx
call fcn.01021df8
cmp dword [rsp + 0x40], ebx
je 0x10128c4
lea rdx, [0x01006668]
lea rcx, [rsp + 0x30]
call fcn.010223e4
mov ecx, ebx
cmp eax, ebx
setne cl
mov dword [0x01047b6c], ecx
lea rdi, [0x01047b90]
xor edx, edx
mov r8d, 0x222
mov rcx, rdi
call fcn.01035300
mov esi, 0x111
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
je 0x1012903
lea r8, [0x01006678]
mov rdx, rsi
mov rcx, rdi
call fcn.01012774
jmp 0x101293b
lea rcx, [0x01006698]
sub rcx, rdi
lea rax, [rsi + 0x7ffffeed]
cmp rax, rbx
je 0x101292f
movzx eax, word [rcx + rdi]
cmp ax, bx
je 0x101292f
mov word [rdi], ax
add rdi, 2
sub rsi, 1
jne 0x101290d
cmp rsi, rbx
jne 0x1012938
sub rdi, 2
mov word [rdi], bx
lea rcx, [0x010066b8]
call fcn.01012d38
lea rdx, [0x010066e0]
lea rcx, [0x010066f0]
call fcn.01012d38
lea r8, [0x010067c0]
mov edx, 1
xor ecx, ecx
mov qword [0x01047db8], r13
mov qword [0x01047b78], r12
mov dword [0x01047b80], ebx
mov dword [0x01047b84], ebx
mov dword [0x01047db4], ebx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x01047b70], rax
cmp rax, rbx
je 0x10129af
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x01047b68], ebx
cmp eax, ebx
je 0x10129b9
mov dword [0x01047b68], 1
mov ecx, ebp
call fcn.01012a98
cmp rax, rbx
jne 0x1012a0b
mov rcx, qword [0x01047b88]
cmp rcx, rbx
je 0x10129e2
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [0x01047b88], rbx
lea rcx, [0x01006720]
call fcn.01012d38
jmp 0x1012a5d
cmp eax, 0xffffffff
je 0x1012a24
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, ebx
jne 0x10129f0
jmp 0x1012a30
lea rcx, [0x01006770]
call fcn.01012d38
mov rcx, qword [0x01047b88]
cmp rcx, rbx
je 0x1012a4d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [0x01047b88], rbx
lea rcx, [0x01006798]
call fcn.01012d38
mov ebx, dword [rsp + 0x58]
lea rax, [0x0100e8d8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.01021f9c
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1012d38
Capabilities:
Get file size
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rbp
sub rsp, 0x68
cmp dword [0x01047b6c], 0
je 0x1012e5f
mov eax, 0x30
lea rbp, [r11 + 0x10]
cmp ax, word [0x01047b90]
je 0x1012e5f
and qword [r11 - 0x48], 0
lea r8d, [rax - 0x2f]
lea rcx, [0x01047b90]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1012e5f
and dword [rsp + 0x44], 0
and dword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x1012df2
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8d, [rax + 2]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov byte [rsp + 0x40], 0xff
mov byte [rsp + 0x41], 0xfe
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1012e56
mov rax, qword [0x01046880]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x50]
mov r8, rbp
mov qword [rsp + 0x50], rax
call fcn.01011218
mov rdx, qword [rsp + 0x50]
and qword [rsp + 0x20], 0
mov r8d, dword [rdx - 0x10]
lea r9, [rsp + 0x44]
mov rcx, rbx
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x50]
call fcn.01010940
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x68
pop rbp
pop rbx
ret
Function at 0x1012e6c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x150
mov rax, qword [0x01045480]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r12d, ecx
mov rbp, rdx
mov ebx, 0x114
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, rbx
xor edi, edi
call fcn.01035300
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, edi
je 0x1013069
cmp dword [rsp + 0x30], 2
jne 0x1013069
cmp dword [rsp + 0x24], 5
jb 0x1013069
lea r14d, [rbx - 0x2c]
mov rbx, qword [0x01047dd0]
mov esi, edi
cmp r12d, 1
jne 0x1012f66
cmp rbx, rdi
jne 0x1012f2a
mov rcx, r14
call fcn.01029e1c
cmp rax, rdi
je 0x1012f1b
mov rcx, rax
call fcn.01027684
mov rbx, rax
mov qword [0x01047dd0], rax
jmp 0x1012f25
mov rbx, rdi
mov qword [0x01047dd0], rbx
cmp rbx, rdi
je 0x1012f66
cmp rbp, rdi
je 0x1012f66
mov rcx, rbx
call fcn.010277dc
cmp eax, 1
jne 0x1012f5f
lea rcx, [rbx + 0x80]
mov rdx, rbp
call fcn.01028074
mov esi, eax
cmp eax, 1
jne 0x1012f5f
lea rcx, [rbx + 8]
xor edx, edx
call fcn.01027b2c
mov esi, eax
mov rbx, qword [0x01047dd0]
cmp r12d, 2
jne 0x1012fdf
cmp rbx, rdi
jne 0x1012f9c
mov rcx, r14
call fcn.01029e1c
cmp rax, rdi
je 0x1012f92
mov rcx, rax
call fcn.01027684
mov rbx, rax
mov qword [0x01047dd0], rax
jmp 0x1012f9c
mov rbx, rdi
mov qword [0x01047dd0], rbx
mov esi, edi
cmp rbx, rdi
je 0x1012fdf
cmp rbp, rdi
je 0x1012fdf
mov rcx, rbx
call fcn.010277dc
cmp eax, 1
jne 0x1012fd8
lea rcx, [rbx + 0x80]
mov rdx, rbp
call fcn.0102816c
mov esi, eax
cmp eax, 1
jne 0x1012fd8
lea rcx, [rbx + 8]
xor edx, edx
call fcn.01027ac0
mov esi, eax
mov rbx, qword [0x01047dd0]
cmp r12d, 3
jne 0x1013051
cmp rbx, rdi
jne 0x1013015
mov rcx, r14
call fcn.01029e1c
cmp rax, rdi
je 0x101300b
mov rcx, rax
call fcn.01027684
mov rbx, rax
mov qword [0x01047dd0], rax
jmp 0x1013015
mov rbx, rdi
mov qword [0x01047dd0], rbx
mov esi, edi
cmp rbx, rdi
je 0x1013051
cmp rbp, rdi
je 0x1013051
mov rcx, rbx
call fcn.010277dc
cmp eax, 1
jne 0x1013051
lea rcx, [rbx + 0x80]
mov rdx, rbp
call fcn.01028264
mov esi, eax
cmp eax, 1
jne 0x1013051
lea rcx, [rbx + 8]
xor edx, edx
call fcn.01027b2c
mov esi, eax
cmp esi, edi
je 0x1013066
mov dword [0x01047dc4], 1
mov edi, 1
jmp 0x1013069
or edi, 0xffffffff
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.01029cb0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x10136e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
lea rcx, [0x01006880]
mov edi, r8d
mov rbx, rdx
call fcn.01012d38
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.01035300
mov eax, 1
xor r9d, r9d
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor ecx, ecx
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
jne 0x1013773
lea rcx, [0x010068b0]
call fcn.01012d38
jmp 0x10137cf
lea rcx, [0x01006920]
call fcn.01012d38
test edi, edi
je 0x10137b9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x01006990]
mov edx, eax
call fcn.01012d38
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x01006a00]
mov edx, eax
call fcn.01012d38
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x10137e8
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xf0
mov rbx, rcx
lea rcx, [0x01006a70]
mov rdi, rdx
call fcn.01012d38
mov esi, 0x68
lea rcx, [rsp + 0x80]
mov r8, rsi
xor edx, edx
call fcn.01035300
lea eax, [rsi - 0x67]
lea rcx, [rbx + 0x10]
mov word [rsp + 0xc0], ax
xor eax, eax
lea rdx, [0x01006540]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x80], esi
call fcn.01010ba4
lea rcx, [rbx + 0x18]
lea rdx, [0x01006540]
call fcn.01010ba4
mov rcx, rbx
call fcn.01013a28
xor esi, esi
cmp eax, esi
je 0x10138dd
lea rcx, [0x01006ac0]
call fcn.01012d38
lea r11, [rsp + 0x60]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp eax, esi
jne 0x10138d1
lea rcx, [0x01006b40]
call fcn.01012d38
jmp 0x10139fb
lea rcx, [0x01006bc0]
jmp 0x10139a1
lea rcx, [0x01006d40]
call fcn.01012d38
lea r11, [rsp + 0x60]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call fcn.0101417c
mov ebx, eax
cmp eax, esi
jne 0x101399a
lea rcx, [0x01006dc0]
call fcn.01012d38
lea rcx, [0x01006e40]
call fcn.01012d38
lea r11, [rsp + 0x60]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp eax, esi
jne 0x1013991
lea rcx, [0x01006ec0]
jmp 0x10138c7
lea rcx, [0x01006f40]
jmp 0x10139a1
lea rcx, [0x01006fc0]
call fcn.01012d38
cmp dword [rsp + 0x120], esi
je 0x10139e5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x01006c40]
mov edx, eax
call fcn.01012d38
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x01006cc0]
mov edx, eax
call fcn.01012d38
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x01007050]
mov edx, ebx
call fcn.01012d38
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1013b68
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rsi, rdx
xor edi, edi
cmp rdx, rdi
je 0x1013d0c
lea rdx, [0x01006540]
lea rcx, [rsp + 0x20]
call fcn.010109f8
nop
mov ebx, 0x208
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.01010e90
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or edx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.01010f00
mov r11, qword [rsp + 0x20]
cmp qword [r11 - 0x10], rdi
je 0x1013c77
mov rax, qword [0x01046880]
mov qword [rsp + 0x68], rax
lea ebp, [rdi + 1]
mov rdx, rbp
lea rcx, [rsp + 0x68]
call fcn.01010f6c
mov r8, rbp
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.0101109c
mov rdx, qword [rax]
mov rax, qword [rsp + 0x68]
sub rdx, rax
movzx r8d, word [rax]
movzx ecx, word [rax + rdx]
sub r8d, ecx
jne 0x1013c25
add rax, 2
test ecx, ecx
jne 0x1013c10
movzx ebx, dil
cmp r8d, edi
cmovne ebx, ebp
lea rcx, [rsp + 0x28]
call fcn.01010940
lea rcx, [rsp + 0x68]
call fcn.01010940
cmp bl, dil
je 0x1013c64
mov eax, 0x5c
mov word [rsp + 0x68], ax
lea r8, [rsp + 0x68]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.01010dac
lea rdx, [0x01007440]
lea rcx, [rsp + 0x20]
call fcn.01010e4c
jmp 0x1013c88
lea rdx, [0x01007440]
lea rcx, [rsp + 0x20]
call fcn.01010b60
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp rax, rdi
jne 0x1013ca9
lea rcx, [rsp + 0x20]
call fcn.01010940
xor eax, eax
jmp 0x1013d0e
lea rdx, [0x01007458]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
jne 0x1013cd6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x20]
call fcn.01010940
xor eax, eax
jmp 0x1013d0e
mov dword [rsp + 0x78], edi
lea r8, [rsp + 0x78]
mov edx, 0x1000
mov rcx, rsi
call rax
cmp eax, edi
je 0x1013cf4
mov edi, dword [rsp + 0x78]
shr edi, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x20]
call fcn.01010940
mov eax, edi
jmp 0x1013d0e
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1015324
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, [0x01006540]
lea rcx, [rsp + 0x48]
call fcn.010109f8
mov ebx, 0x208
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.01010e90
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x48]
or edx, 0xffffffff
call fcn.01010f00
mov rax, qword [rsp + 0x48]
xor ebp, ebp
mov esi, 1
cmp qword [rax - 0x10], rbp
je 0x101541f
mov rax, qword [0x01046880]
lea rcx, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x40], rax
call fcn.01010f6c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r8, rsi
call fcn.0101109c
mov rcx, qword [rsp + 0x40]
mov r8, qword [rax]
sub r8, rcx
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x10153ce
add rcx, 2
test eax, eax
jne 0x10153ba
cmp edx, ebp
lea rcx, [rsp + 0x50]
movzx ebx, bpl
cmovne ebx, esi
call fcn.01010940
lea rcx, [rsp + 0x40]
call fcn.01010940
cmp bl, bpl
je 0x101540c
mov eax, 0x5c
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov rdx, rsi
mov word [rsp + 0x40], ax
call fcn.01010dac
lea rdx, [0x010092a0]
lea rcx, [rsp + 0x48]
call fcn.01010e4c
jmp 0x1015430
lea rdx, [0x010092a0]
lea rcx, [rsp + 0x48]
call fcn.01010b60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi], rax
cmp rax, rbp
je 0x1015446
mov dword [rdi + 8], esi
mov ebx, dword [rdi + 8]
lea rcx, [rsp + 0x48]
call fcn.01010940
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1015468
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
lea r8, [rax - 0x18]
lea rdx, [0x010092c0]
and qword [rax - 0x18], rsi
and dword [rax + 0x20], esi
and dword [rax + 0x18], esi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x101556a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
lea rdx, [0x010092f0]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101556a
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x101556a
lea ecx, [rsi + 0x40]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x101556a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [0x010092f0]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1015561
cmp dword [rsp + 0x68], 7
jne 0x1015561
mov rdi, rbx
cmp byte [rbx], sil
je 0x1015561
lea rdx, [0x01009368]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x101555c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdqe
add rdi, rax
cmp byte [rdi], sil
jne 0x1015531
jmp 0x1015561
mov esi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x101557a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1015594
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x01045480]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov edi, 0x114
lea rcx, [rsp + 0x20]
mov r8, rdi
xor edx, edx
call fcn.01035300
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x10156cc
mov eax, dword [rsp + 0x24]
cmp eax, 4
jbe 0x10155f9
cmp dword [rsp + 0x28], 0
ja 0x10155fe
cmp eax, 5
jbe 0x101560a
mov dword [rbx + 0xc], 1
jmp 0x10156cc
cmp eax, 4
jbe 0x10156ba
lea rcx, [0x01009300]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x10156cc
lea rdx, [0x01009318]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x10156cc
mov r8b, 6
mov edx, 0x40
xor ecx, ecx
call rax
lea rcx, [0x01009330]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x10156cc
lea rdx, [0x01009350]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
test eax, eax
lea rdx, [0x01009368]
mov rcx, rbx
call fcn.01015468
Function at 0x1017ff8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x01045480]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r12, rdx
mov r15, rcx
lea rdx, [0x01006540]
mov rcx, r12
mov rbp, r8
call fcn.010109f8
mov rdx, qword [rbp]
mov r13, qword [rdx - 0x10]
xor edx, edx
mov r14d, edx
mov rbx, rdx
cmp r13, rdx
jbe 0x101823e
lea esi, [rdx + 1]
lea r8d, [rdx + 0x22]
cmp r14d, esi
jne 0x10180bd
mov rcx, qword [rbp]
movzx eax, word [rcx + rbx*2]
cmp ax, r8w
jne 0x10180a3
lea rdi, [rbx + 1]
cmp rdi, r13
jae 0x101809b
cmp word [rcx + rbx*2 + 2], r8w
jne 0x101809b
mov word [rsp + 0x20], r8w
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, r12
call fcn.01010dac
mov rbx, rdi
jmp 0x101822a
mov r14d, edx
jmp 0x1018232
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, r12
mov word [rsp + 0x20], ax
call fcn.01010dac
jmp 0x101822a
mov rax, qword [rbp]
cmp word [rax + rbx*2], r8w
jne 0x10180d0
mov r14d, esi
jmp 0x1018232
cmp word [rax + rbx*2], 0x20
je 0x1018232
cmp word [rax + rbx*2], 0x2b
je 0x1018232
lea rdx, [rsp + 0x40]
mov r9d, 9
mov r8, rbx
mov rcx, rbp
call fcn.01011024
xor edx, edx
lea rdi, [0x0100a978]
mov rsi, qword [rax]
lea ecx, [rdx + 0xa]
repe cmpsw word [rsi], word [rdi]
je 0x1018115
sbb edx, edx
sbb edx, 0xffffffff
xor eax, eax
lea rcx, [rsp + 0x40]
lea esi, [rax + 1]
movzx edi, al
cmp edx, eax
cmove edi, esi
call fcn.01010940
test dil, dil
je 0x1018175
mov rax, qword [0x01046880]
lea rdx, [r15 + 0x100]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.01010aec
mov rdx, qword [rsp + 0x28]
mov r8, rdx
mov rdx, qword [rdx - 0x10]
mov rcx, r12
call fcn.01010dac
lea rcx, [rsp + 0x28]
add rbx, 9
call fcn.01010940
jmp 0x1018203
lea rdx, [rsp + 0x38]
mov r9d, 9
mov r8, rbx
mov rcx, rbp
call fcn.01011024
xor edx, edx
lea rdi, [0x0100a990]
mov rsi, qword [rax]
lea ecx, [rdx + 0xa]
repe cmpsw word [rsi], word [rdi]
je 0x10181a4
sbb edx, edx
sbb edx, 0xffffffff
xor eax, eax
lea rcx, [rsp + 0x38]
lea esi, [rax + 1]
movzx edi, al
cmp edx, eax
cmove edi, esi
call fcn.01010940
xor edx, edx
cmp dil, dl
je 0x1018205
lea rcx, [rsp + 0x50]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.010109f8
mov rdx, qword [rsp + 0x30]
mov rcx, r12
mov r8, rdx
mov rdx, qword [rdx - 0x10]
call fcn.01010dac
lea rcx, [rsp + 0x30]
call fcn.01010940
add rbx, 9
xor edx, edx
cmp rbx, r13
jae 0x101822c
mov rax, qword [rbp]
lea rdx, [rax + rbx*2]
cmp word [rdx], 0x20
je 0x101822a
cmp word [rdx], 0x2b
je 0x101822a
add rbx, rsi
add rdx, 2
cmp rbx, r13
jb 0x1018212
xor edx, edx
mov r8d, 0x22
add rbx, rsi
cmp rbx, r13
jb 0x1018059
mov rcx, rbp
call fcn.01010940
mov rax, r12
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.01029cb0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1018d0c
Capabilities:
Query service status

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, 0x40
lea rcx, [0x0100b1f8]
mov rbp, rdx
call fcn.01012d38
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor edi, edi
mov rsi, rax
cmp rax, rdi
jne 0x1018d62
lea rcx, [0x0100b240]
call fcn.01012d38
mov edi, 0xfffffffe
jmp 0x1018de2
mov rdx, qword [rbp]
mov r8d, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
cmp rax, rdi
jne 0x1018d97
lea rcx, [0x0100b2b0]
call fcn.01012d38
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or edi, 0xffffffff
jmp 0x1018de2
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, edi
jne 0x1018dcb
lea rcx, [0x0100b320]
call fcn.01012d38
jmp 0x1018de2
cmp dword [rsp + 0x24], 4
lea rcx, [0x0100b3a0]
sete dil
mov edx, edi
call fcn.01012d38
mov rcx, rbp
call fcn.01010940
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret