joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400017d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x140001900
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000181b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001800
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001922
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001907
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000189e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400018b0
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000189e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001828
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001eec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ee3
test rsi, rsi
je 0x140001ee3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ec8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002100
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002110
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x140002120
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002138
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002140
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002150
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000219d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002194
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000219f
add rax, 0x28
cmp rax, r9
jne 0x140002180
xor eax, eax
ret

Function at 0x1400021a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002230
mov rdx, qword [0x1400043f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000221e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000221e
cmp word [rax + 0x18], 0x20b
jne 0x14000221e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002230
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002209
add rbx, 0x28
cmp rbx, rdi
je 0x140002230
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002200
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002240
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002260
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002268
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002260
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400022b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002260
add rax, 0x28
cmp rax, r9
jne 0x1400022a0
xor eax, eax
ret

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022df
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002320
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002328
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002320
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002370
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002367
test rcx, rcx
je 0x140002320
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002358
xor eax, eax
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000239f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400023c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023e0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400023e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002434
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002440
add rdx, 0x28
cmp r9, rdx
jne 0x140002420
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002472
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002480
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002472
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002472
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002472
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x1400024d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024e8
add rdx, 0x28
cmp rdx, r10
jne 0x1400024c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002507
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024de
test ecx, ecx
jg 0x1400024f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000ba50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140050fa0]
mov rbx, rcx
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x30], rax
mov rax, qword [0x140050f98]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx + 0xc]
add rax, 0x10
cmp rax, qword [0x140052ce0]
mov qword [rsp + 0x78], rax
ja 0x14000bb2c
cmp qword [0x140050fb0], 0xffffffffffffffff
jne 0x14000baa7
mov eax, 0xfffffffd
add rsp, 0x60
pop rbx
ret
lea rcx, [0x140052e28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, qword [rsp + 0x78]
mov rcx, qword [0x140052cd8]
mov rdx, rbx
call fcn.140022ce0
mov rax, qword [0x140050fa0]
mov rcx, qword [0x140050fb0]
xor r11d, r11d
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
lea r8d, [r11 + 8]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000bb37
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14000bb37
lea rcx, [0x140052e28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffc
add rsp, 0x60
pop rbx
ret
xor r8d, r8d
lea rdx, [rsp + 0x30]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14000bb74
mov rcx, qword [0x140050fb0]
call qword [sym.imp.KERNEL32.dll_CancelIo]
lea rcx, [0x140052e28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
add rsp, 0x60
pop rbx
ret
mov rcx, qword [0x140050f98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140050fb0]
test eax, eax
je 0x14000bb58
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea rcx, [0x140052e28]
test eax, eax
je 0x14000bb65
mov eax, dword [rsp + 0x70]
neg eax
sbb ebx, ebx
neg ebx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [rbx - 1]
add rsp, 0x60
pop rbx
ret
Function at 0x14000e0b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x140052e50]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140050fb0], 0xffffffffffffffff
je 0x14000e14f
cmp qword [0x140050fb8], 0xffffffffffffffff
jne 0x14000e14f
test rbx, rbx
je 0x14000e14f
mov rcx, qword [0x140050f98]
mov qword [0x140052d08], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140050f90]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140050f88]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x48]
lea r8, [0x14000cc20]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.1400247a4
test rax, rax
jne 0x14000e165
mov rcx, qword [0x140050f90]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov qword [0x140050fb8], 0xffffffffffffffff
lea rcx, [0x140052e50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x140050f88]
or edx, 0xffffffff
mov qword [0x140050fb8], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x140052e50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14000e3e0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14004f808]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1f0fff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000e492
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e489
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000e483
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x44], rax
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400229a0
add rsp, 0x60
pop rbx
ret
Function at 0x14000e5b0
Capabilities:
Create service
Start service

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x14004f808]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
xor bl, bl
call fcn.14000ee00
lea r8, str.system32drivers_s.sys
lea rcx, [rsp + 0x70]
mov r9, rdi
mov edx, 0x104
call fcn.140024a14
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x14000e610
or eax, 0xffffffff
jmp 0x14000e6ee
xor eax, eax
mov qword [rsp + 0x1b8], rbp
mov qword [rsp + 0x1c0], r12
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov r12d, 1
lea rax, str.PNP_TDI
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov r8, rdi
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbp, rbp
je 0x14000e689
mov rcx, rbp
jmp 0x14000e6a6
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
je 0x14000e6c3
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
movzx ebx, bl
mov rcx, rbp
test eax, eax
cmovne ebx, r12d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
mov rcx, rdi
call fcn.14000e8c0
mov r12, qword [rsp + 0x1c0]
mov rbp, qword [rsp + 0x1b8]
neg bl
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400229a0
add rsp, 0x190
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000e710
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov dl, 1
mov rdi, rcx
xor bl, bl
call fcn.14000e8c0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x14000e77a
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x14000e771
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
neg bl
mov rbx, qword [rsp + 0x30]
sbb eax, eax
neg eax
dec eax
add rsp, 0x20
pop rdi
ret
Function at 0x14000e7a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, r9
mov rsi, r8
mov rbp, rdx
test cl, cl
je 0x14000e853
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r8
lea r9, [rsp + 0x40]
lea rdx, str.PNP_TDI
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000e7fd
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14000e89e
mov ecx, dword [rsi]
add rcx, 4
call fcn.140023fc8
mov rcx, qword [rbx]
mov qword [rbp], rax
test rax, rax
je 0x14000e7f0
lea r9, [rsp + 0x40]
lea rdx, str.PNP_TDI
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test eax, eax
je 0x14000e890
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp]
call fcn.140023014
mov qword [rbp], rdi
xor al, al
jmp 0x14000e89e
mov eax, dword [r8]
cmp eax, 4
jbe 0x14000e862
shr eax, 2
dec eax
jmp 0x14000e864
mov eax, edi
mov rcx, qword [rdx]
lea rdx, str.PNP_TDI
mov r9d, 3
mov dword [rcx], eax
mov eax, dword [r8]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ee00
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x48]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpip6Parameters
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000ee36
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.DisabledComponents
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x40], 0x8e
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
sete al
add rsp, 0x38
ret

Function at 0x14000f4b0
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x14000f4c3
lea eax, [rdx + 1]
ret
test r8d, r8d
je 0x14000f600
nop dword [rax]
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x14000f5bc
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
nop dword [rax]
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
dec r11
jne 0x14000f500
test edx, edx
je 0x14000f5d1
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
dec edx
jne 0x14000f5c0
mov eax, 0x80078071
mul r9d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
test r8d, r8d
jne 0x14000f4d0
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x14000fd00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x38]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x8c]
mov esi, dword [rdi + 0x50]
mov eax, dword [rdi + 0x38]
sub esi, dword [rdi + 0x94]
lea ecx, [rbx + rax - 0x106]
sub esi, edx
cmp edx, ecx
jb 0x14000fdaf
mov rcx, qword [rdi + 0x48]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.140022ce0
mov r8d, dword [rdi + 0x6c]
mov rax, qword [rdi + 0x60]
sub dword [rdi + 0x90], ebx
sub dword [rdi + 0x8c], ebx
sub dword [rdi + 0x7c], ebx
lea rdx, [rax + r8*2]
nop word [rax + rax]
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jb 0x14000fd80
sub eax, ebx
jmp 0x14000fd82
xor eax, eax
dec r8d
mov word [rdx], ax
jne 0x14000fd70
mov rax, qword [rdi + 0x58]
mov edx, ebx
lea rcx, [rax + rbx*2]
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jb 0x14000fda4
sub eax, ebx
jmp 0x14000fda6
xor eax, eax
dec edx
mov word [rcx], ax
jne 0x14000fd94
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x14000fe26
mov edx, dword [rdi + 0x94]
mov eax, dword [rdi + 0x8c]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x48]
call fcn.14000f9c0
add dword [rdi + 0x94], eax
mov r9d, dword [rdi + 0x94]
cmp r9d, 3
jb 0x14000fe10
mov eax, dword [rdi + 0x8c]
mov rdx, qword [rdi + 0x48]
mov ecx, dword [rdi + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x74]
mov dword [rdi + 0x68], r8d
cmp r9d, 0x106
jae 0x14000fe26
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x14000fd20
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400145a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x1400145b5
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
xor ebx, ebx
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
cmovne ebx, dword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x1400145f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x140014605
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
xor ebx, ebx
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
cmovne ebx, dword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140014640
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x140014655
xor eax, eax
add rsp, 0x28
ret
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1400147f0
Capabilities:
Clear file content

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, rcx
jne 0x140014808
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov rax, qword [rcx]
xor edx, edx
mov qword [rsp + 0x30], rbx
lea r8d, [rdx + 1]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140014840
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
mov rbx, rcx
je 0x140014865
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x10]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
add rsp, 0x20
pop rbx
ret