joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd600
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor rdx, rdx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x4bd608
nop
ret

Function at 0x50c4a0
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x19], 0
jne 0x50c4d3
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x50c531
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x50c531
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x68], 0
jne 0x50c531
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x50c55b
lea rcx, [rbp + 0x38]
mov rdx, qword [0x0057d240]
call fcn.00413d80
mov rcx, qword [0x004d2660]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.004349e0
mov rcx, rax
call fcn.0040d440
jmp 0x50c55b
lea rcx, [rbp + 0x30]
mov rdx, qword [0x0057d240]
call fcn.00413d80
mov rcx, qword [0x004d2660]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.004349e0
mov rcx, rax
call fcn.0040d440
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e430
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x50d3d0
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.0050c2e0
jmp 0x50d42b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x50d450
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.0050c2e0
cmp esi, 1
jne 0x50d47a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x54cd30
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov qword [rbp + 0x70], r8
mov qword [rbp + 0x78], r9
mov byte [rbp + 0x47], 0
mov rax, qword [rbp + 0x70]
mov dword [rax], 0
mov rax, qword [rbp + 0x78]
mov dword [rax], 0
mov rax, qword [rbp + 0x80]
mov dword [rax], 0
mov rcx, qword [rbp + 0x68]
call fcn.0040f6d0
mov rcx, rax
lea rdx, [rbp + 0x3c]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x40], eax
cmp dword [rbp + 0x40], 0
jbe 0x54ce1d
mov ecx, dword [rbp + 0x40]
call fcn.00408c30
mov qword [rbp + 0x48], rax
nop
mov rcx, qword [rbp + 0x68]
call fcn.0040f6d0
mov rcx, rax
mov edx, dword [rbp + 0x3c]
mov r8d, dword [rbp + 0x40]
mov r9, qword [rbp + 0x48]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x54ce13
mov rcx, qword [rbp + 0x48]
lea rdx, [0x0054ce54]
lea r8, [rbp + 0x30]
lea r9, [rbp + 0x40]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x54ce13
mov rax, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx + 0xc]
shr ecx, 0x10
mov dword [rax], ecx
mov rax, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx + 0xc]
and ecx, 0xffff
mov dword [rax], ecx
mov byte [rbp + 0x47], 1
nop
mov rcx, qword [rbp + 0x48]
call fcn.00408c60
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x54d470
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
call fcn.0040f6d0
mov rcx, rax
call sub.kernel32.dll_SetConsoleTitleW
add rsp, 0x28
ret

Function at 0x550650
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x28], rbp
nop
cmp qword [0x0057ca58], 0
je 0x55071d
nop
mov rcx, qword [0x0057ca58]
mov rax, qword [0x0057ca58]
mov rax, qword [rax]
call qword [rax + 0x28]
xor rcx, rcx
mov ebx, eax
sub ebx, 1
mov dword [rbp + 0x44], ecx
cmp dword [rbp + 0x44], ebx
jg 0x5506fc
add ebx, 1
mov rcx, qword [0x0057ca58]
lea rdx, [rbp + 0x38]
mov r8d, dword [rbp + 0x44]
mov rax, qword [0x0057ca58]
mov rsi, qword [rax]
call qword [rsi + 0x18]
mov rcx, qword [rbp + 0x38]
mov dl, 1
call fcn.0042bb60
test al, al
je 0x5506d3
mov rcx, qword [rbp + 0x38]
call fcn.00550320
jmp 0x5506f3
mov rcx, qword [rbp + 0x38]
mov dl, 1
call fcn.0042ba70
test al, al
je 0x5506f3
mov rcx, qword [rbp + 0x38]
call fcn.0040f6d0
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
add dword [rbp + 0x44], 1
cmp dword [rbp + 0x44], ebx
jne 0x55069d
nop
nop
mov rax, qword [0x0057ca58]
mov qword [rbp + 0x48], rax
mov qword [0x0057ca58], 0
mov rcx, qword [rbp + 0x48]
call fcn.0040ae00
nop
lea rcx, [rbp + 0x38]
call fcn.0040e350
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rbp
ret
Function at 0x551130
Capabilities:
Set console window title

Disassembly:
push rbp
sub rsp, 0x870
mov rbp, rsp
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x880], rcx
nop
mov byte [rbp + 0x6f], 0
lea rcx, [rbp + 0x70]
mov edx, 0x400
call sub.kernel32.dll_GetConsoleTitleW
test eax, eax
je 0x55120b
call sub.kernel32.dll_GetTickCount
mov dword [rbp + 0x28], eax
mov byte [rbp + 0x30], 0
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rbp + 0x38], eax
mov byte [rbp + 0x40], 0
lea rcx, [rbp + 0x60]
lea rdx, [0x00551290]
lea r8, [rbp + 0x28]
mov r9d, 1
call fcn.0042c830
mov rcx, qword [rbp + 0x60]
call fcn.0040f6d0
mov rcx, rax
call sub.kernel32.dll_SetConsoleTitleW
test eax, eax
je 0x55120b
nop
mov ecx, 0x28
call sub.kernel32.dll_Sleep
mov rcx, qword [rbp + 0x60]
call fcn.0040f6d0
xor rcx, rcx
mov rdx, rax
call sub.user32.dll_FindWindowW
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
je 0x5511e9
nop
lea rcx, [rbp + 0x70]
call sub.kernel32.dll_SetConsoleTitleW
jmp 0x5511f7
xor rcx, rcx
mov rdx, qword [rbp + 0x48]
call fcn.00551230
jmp 0x55120b
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x880]
call fcn.00550f50
mov byte [rbp + 0x6f], al
nop
lea rcx, [rbp + 0x60]
call fcn.0040e350
movzx rax, byte [rbp + 0x6f]
lea rsp, [rbp + 0x870]
pop rbp
ret
Function at 0x140001380
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xc8]
xor ebx, ebx
add cl, 0x40
mov r14d, r8d
mov ebp, r9d
mov byte [rsp + 0x4c], cl
mov r13d, edx
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsi], ebx
mov byte [rsp + 0x48], 0x5c
mov byte [rsp + 0x49], 0x5c
mov byte [rsp + 0x4a], 0x2e
mov byte [rsp + 0x4b], 0x5c
mov byte [rsp + 0x4d], 0x3a
mov byte [rsp + 0x4e], bl
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001419
lea eax, [rbx + 0xb]
jmp 0x140001471
lea r8, [rsp + 0x44]
xor r9d, r9d
mov edx, r13d
mov rcx, rax
mov dword [rsp + 0x44], r14d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14000143e
mov ebx, recv
jmp 0x140001466
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, r12
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001460
lea ebx, [rax + 8]
jmp 0x140001466
mov ecx, dword [rsp + 0x40]
mov dword [rsi], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e7c0
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400014d0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movzx ebx, cl
lea rcx, [rsp + 0x20]
mov rdi, rdx
mov dword [rsp + 0x20], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140001545
cmp dword [rsp + 0x30], 2
jne 0x140001545
cmp dword [rsp + 0x24], 5
mov rdx, rdi
movzx ecx, bl
jae 0x140001533
call fcn.1400038a0
movzx r11d, al
xor eax, eax
test r11b, r11b
sete al
jmp 0x14000154a
call fcn.140003b80
mov r11b, al
xor eax, eax
test r11b, r11b
sete al
jmp 0x14000154a
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001e7c0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret

Function at 0x140001570
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov byte [rsp + 0x21], 0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [rsp + 0x21], 0x3a
je 0x1400015b1
mov eax, 1
jmp 0x1400015be
movzx ecx, byte [rsp + 0x20]
mov rdx, rbx
call fcn.1400014d0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001e7c0
add rsp, 0x140
pop rbx
ret
Function at 0x140001880
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov esi, dword [rcx + 0x1c]
mov rbp, qword [rcx]
mov r12, qword [rcx + 0x20]
lea ebx, [rdx - 1]
lea r8, [rsp + 0x50]
xor edi, edi
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x58], edi
imul rbx, rsi
mov rax, rbx
mov edx, ebx
shr rax, 0x20
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
je 0x1400018d0
lea eax, [rdi + 0xd]
jmp 0x1400018fb
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, r12
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, 8
je 0x1400018fb
cmp dword [rsp + 0x58], esi
cmovne edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x140001910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov esi, dword [rcx + 0x1c]
mov rbp, qword [rcx]
mov r12, qword [rcx + 0x20]
lea ebx, [rdx - 1]
lea r8, [rsp + 0x50]
xor edi, edi
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x58], edi
imul rbx, rsi
mov rax, rbx
mov edx, ebx
shr rax, 0x20
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
je 0x140001960
lea eax, [rdi + 0xd]
jmp 0x14000198b
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, r12
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, 9
je 0x14000198b
cmp dword [rsp + 0x58], esi
cmovne edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x1400019a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov eax, 0xffffffff
cmp rdx, rax
jb 0x1400019b8
mov eax, 0x1d
add rsp, 0x48
ret
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov rbp, qword [rcx]
mov eax, edx
mov qword [rsp + 0x40], rsi
mov esi, dword [rcx + 0x1c]
mov qword [rsp + 0x38], rdi
mov rbx, rsi
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 0x20]
xor edi, edi
imul rbx, rax
mov rax, rbx
xor r9d, r9d
mov edx, ebx
shr rax, 0x20
mov rcx, rbp
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
mov rbx, qword [rsp + 0x60]
je 0x140001a16
lea eax, [rdi + 0xd]
jmp 0x140001a48
lea r9, [rsp + 0x50]
mov r8d, esi
mov rdx, r12
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001a3a
mov eax, 8
jmp 0x140001a48
cmp dword [rsp + 0x50], esi
mov eax, 8
cmovne edi, eax
mov eax, edi
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x68]
add rsp, 0x48
ret
Function at 0x1400038a0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x190
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbp, rdx
xor bl, bl
movsx r8d, cl
lea rdx, [0x1400e02e4]
lea rcx, [rsp + 0x58]
call fcn.14001f8e0
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x140003989
lea rcx, [rsp + 0x70]
call fcn.14001f86c
mov rdx, qword [0x14014c7d0]
lea rcx, [rsp + 0x28]
call fcn.14008c260
nop
lea rcx, [rsp + 0x28]
call fcn.14008c1e0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001f430
mov rsi, rax
test rax, rax
je 0x14000397b
lea rcx, [rsp + 0x28]
call fcn.14008c1e0
mov rdi, rax
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
add rcx, rsi
mov r8, rbp
lea rdx, [0x1400e02e0]
call fcn.14001f530
movzx ebx, bl
mov ecx, 1
cmp eax, ecx
cmove ebx, ecx
lea rcx, [rsp + 0x28]
call fcn.14008c220
mov al, bl
jmp 0x14000398b
mov al, bl
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14001e7c0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400039b0
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rdx
movsx r8d, cl
lea rdx, str.._c:
lea rcx, [rsp + 0x48]
xor bl, bl
call fcn.14001f8e0
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x48]
lea r8d, [r9 + 3]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140003a6f
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rdi
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140003a66
mov eax, dword [rsp + 0x5c]
mov bl, 1
mov dword [rsi], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001e7c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140003da0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 2
jb 0x140003dd9
cmp byte [rsp + 0x21], 0x3a
mov al, byte [rsp + 0x20]
je 0x140003ddb
mov al, 0x43
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001e7c0
add rsp, 0x148
ret
Function at 0x1400048a0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xa0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx r12d, r9b
mov rdi, r8
mov esi, edx
movzx ebx, cl
mov byte [rsp + 0x78], cl
mov byte [rsp + 0x79], 0x3a
mov byte [rsp + 0x7a], 0x5c
mov byte [rsp + 0x7b], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x140004902
mov eax, socket
jmp 0x1400049dc
mov rdx, qword [0x14014c7e8]
lea rcx, [rsp + 0x48]
call fcn.14008c260
nop
movsx ebx, bl
mov rcx, rax
call fcn.14008c1e0
mov rdx, rax
mov r8d, ebx
lea rcx, [rsp + 0x80]
call fcn.14001f8e0
nop
lea rcx, [rsp + 0x48]
call fcn.14008c220
xor edx, edx
mov r8d, 0x1a0
mov rcx, rdi
call fcn.14001ed20
xor r11d, r11d
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r11 + 3]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400049d5
mov r8, rdi
mov edx, esi
mov rcx, rax
call fcn.140004100
mov ebx, eax
test eax, eax
je 0x1400049ca
mov rdx, rdi
mov rcx, rbp
call fcn.140003bc0
mov ebx, eax
test eax, eax
je 0x1400049ca
test r12b, r12b
je 0x1400049ca
mov rdx, rdi
mov ecx, esi
call fcn.140004470
mov ebx, eax
test eax, eax
je 0x1400049ca
mov rdx, rdi
mov ecx, esi
call fcn.1400045a0
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400049da
mov ebx, reloc.WS2_32.dll_inet_addr
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14001e7c0
add rsp, 0xa0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140004ba0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [0x1401637c4]
jmp fcn.140004d00

Function at 0x140004cd0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x140004c40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
setne al
add rsp, 0x38
ret
Function at 0x140004d00
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [0x1401638d0], 0
mov dword [rsp + 0x50], ecx
je 0x140004eaa
lea rax, str.FNPLicensingService64
mov qword [rsp + 0x1e8], rbx
lea r9, str.Macrovision
mov qword [rsp + 0x28], rax
lea rax, str.FlexNet_Publisher
lea r8, str.SOFTWARE_s_s_s
lea rcx, [rsp + 0xc0]
xor ebx, ebx
mov edx, pe_nt_image_headers64
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
call fcn.14001fc20
call fcn.14006e8c0
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0xc0]
mov rcx, 0xffffffff80000002
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140004dd7
xor al, al
mov rbx, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14001e7c0
add rsp, 0x1d8
ret
xor edx, edx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x1f0], rsi
lea r8d, [rdx + 0x60]
mov qword [rsp + 0x1d0], rdi
call fcn.14001ed20
xor ecx, ecx
call fcn.14001fcd0
mov rcx, rax
call fcn.14001fd30
call fcn.14001fd48
mov esi, eax
shl esi, 0x10
call fcn.14001fd48
lea rbx, [rsp + 0x64]
add esi, eax
mov edi, reloc.WS2_32.dll_socket
add dword [rsp + 0x50], esi
mov dword [rsp + 0x60], esi
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.140004c10
mov r11d, dword [rsp + 0x50]
add rbx, 4
mov dword [rbx - 4], r11d
add r11d, r11d
sub r11d, esi
sub rdi, 1
mov dword [rsp + 0x50], r11d
jne 0x140004e30
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
lea r9d, [rdi + 3]
lea rdx, [0x1400e03d8]
xor r8d, r8d
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x1d0]
mov rsi, qword [rsp + 0x1f0]
test ebx, ebx
sete al
jmp 0x140004db7
mov al, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14001e7c0
add rsp, 0x1d8
ret

Function at 0x140004f70
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rdx, str.FlexNet_Licensing_Service_64
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rsp + 0x60], rbx
mov rdi, rax
test rax, rax
je 0x140004fda
xor ecx, ecx
mov r9d, 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], r9w
mov edx, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140005100
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140005132
lea eax, [rcx + 6]
jmp 0x14000520a
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000520a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x190], rsi
mov qword [rsp + 0x38], rax
xor esi, esi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1400051eb
nop dword [rax]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.140005100
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1400051a0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rsi, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14001e7c0
mov rbx, qword [rsp + 0x198]
add rsp, 0x170
pop rdi
ret

Function at 0x140005230
Capabilities:
Query service configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1401638d8]
test rcx, rcx
jne 0x140005247
mov al, 1
add rsp, 0x28
ret
lea r9, [rsp + 0x30]
mov qword [rsp + 0x38], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x30], 1
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov ecx, dword [rsp + 0x30]
call fcn.14000fdf0
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.14001ed20
mov r8d, dword [rsp + 0x30]
mov rcx, qword [0x1401638d8]
lea r9, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x1400052ad
cmp dword [rbx + 4], 3
sete dil
mov rcx, rbx
call fcn.14000fdf8
mov rbx, qword [rsp + 0x38]
mov al, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret