joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003fd0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 0xc0000000
mov ebx, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1800040f8
lea r8d, [rsi + 0x14]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1800040ef
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800040e6
lea rdx, str.QueryServiceStatusEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800040e6
xor ecx, ecx
lea r9d, [rsi + 0x24]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], ecx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], rsi
call rax
test eax, eax
je 0x1800040e6
mov ebx, dword [rsp + 0x3c]
cmp ebx, 4
je 0x1800040b6
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
cmp dword [0x1800d5b50], 0
je 0x1800040e6
lea r9, str.CheckAndStartService___d____d_
lea r8, str.Inject
lea rcx, [0x1800d5a98]
mov edx, reloc.WS2_32.dll_ntohs
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebx
call fcn.180015330
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18002f6f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000c1d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rdi, rdx
mov r12d, ecx
lea rsi, str.disfunc_
lea rbx, [rdx + 0x10]
test ecx, ecx
je 0x18000c20a
lea rbx, [rdx + 0x14]
lea rsi, str.enfunc_
xor r13d, r13d
cmp dword [rbx], r13d
je 0x18000c236
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx]
cmp eax, 0x1d4c0
ja 0x18000c236
test r12d, r12d
jne 0x18000c22e
mov esi, dword [rdi + 0x18]
jmp 0x18000c384
mov esi, dword [rdi + 0x1c]
jmp 0x18000c384
mov rax, qword [0x18007cb48]
mov qword [rbp + 0x48], rax
mov r9, qword [rdi + 8]
mov r8, rsi
lea rdx, str._s_s
lea rcx, [rbp + 0x48]
call fcn.180021070
lea r14, vtable.CTConfig.0
mov qword [rbp - 0x40], r14
mov rax, qword [0x18007cb48]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x20]
call fcn.180021480
nop
mov dword [rbp - 8], r13d
call fcn.1800137b0
nop
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x50]
call fcn.180021720
mov rbx, rax
mov qword [rbp + 0x58], rax
mov dword [rbp - 8], r13d
lea rcx, [rbp - 0x38]
call fcn.180021950
lea rcx, [rbp - 0x30]
call fcn.180021950
lea rcx, [rbp - 0x28]
call fcn.180021950
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.180021e00
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.1800205d0
lea rcx, [rbp - 0x40]
call fcn.180013ae0
nop
mov rcx, rbx
call fcn.1800204c0
mov esi, r13d
mov dword [rbp + 0x40], r13d
cmp dword [rbp - 0x18], r13d
jle 0x18000c311
mov rax, qword [rbp - 0x20]
lea r8, [rbp + 0x40]
lea rdx, [0x18009a1f4]
mov rcx, qword [rax]
call fcn.18002ffc8
mov esi, dword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov rdx, rdi
lea rcx, [0x1800d0490]
call fcn.18000cbb0
mov rdx, rdi
lea rcx, [0x1800d0490]
test r12d, r12d
jne 0x18000c344
mov dword [rax + 0x10], ebx
call fcn.18000cbb0
mov dword [rax + 0x18], esi
jmp 0x18000c34f
mov dword [rax + 0x14], ebx
call fcn.18000cbb0
mov dword [rax + 0x1c], esi
mov qword [rbp - 0x40], r14
lea rcx, [rbp - 0x20]
call fcn.180021dd0
nop
lea rcx, [rbp - 0x28]
call fcn.1800204c0
nop
lea rcx, [rbp - 0x30]
call fcn.1800204c0
nop
lea rcx, [rbp - 0x38]
call fcn.1800204c0
nop
lea rcx, [rbp + 0x48]
call fcn.1800204c0
cmp esi, 1
sete r13b
mov eax, r13d
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000cf60
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
call fcn.180045a70
test eax, eax
jne 0x18000cf8a
call fcn.180045a90
test eax, eax
jne 0x18000cf8a
call fcn.180045a10
test eax, eax
jne 0x18000cf8a
mov dword [rbx + 0x218], eax
cmp dword [rbx + 0x21c], 0
jne 0x18000d163
cmp dword [rbx + 0x220], 3
jge 0x18000d163
cmp dword [rbx + 0x218], 0
je 0x18000d163
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
lea rsi, str.TnfcapInst.dll
call fcn.1800457e0
lea rdi, str.TnfcapInst64.dll
test eax, eax
lea rax, [rbx + 0x10]
cmove rdi, rsi
cmp word [rax], 0
cmovne rdi, rax
inc dword [rbx + 0x220]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x1800d5b50], 0
mov rsi, rax
je 0x18000d024
lea r9, str.CTnfcapDrive::Initialize____08x____s_
lea r8, str.drive
lea rcx, [0x1800d5a98]
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.180015330
mov rdi, qword [rsp + 0x78]
test rsi, rsi
je 0x18000d152
lea rdx, str.InitTnfcapMgr
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UninitTnfcapMgr
mov rcx, rsi
mov qword [0x1800d5728], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InstallTnfcapModule
mov rcx, rsi
mov qword [0x1800d5730], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UninstallTnfcapModule
mov rcx, rsi
mov qword [0x1800d5738], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsTnfcapInstalled
mov rcx, rsi
mov qword [0x1800d5740], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.StartTnfcapService
mov rcx, rsi
mov qword [0x1800d5748], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.StopTnfcapService
mov rcx, rsi
mov qword [0x1800d5750], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x1800d5b50], 0
mov qword [0x1800d5758], rax
je 0x18000d148
mov rcx, qword [0x1800d5748]
lea r9, str.CTnfcapDrive::Initialize____08x__08x__08x__08x__08x___08x__08x_
lea r8, str.drive
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
mov rax, qword [0x1800d5750]
mov qword [rsp + 0x40], rax
mov rax, qword [0x1800d5740]
lea rcx, [0x1800d5a98]
mov qword [rsp + 0x38], rax
mov rax, qword [0x1800d5738]
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rax
mov rax, qword [0x1800d5730]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1800d5728]
mov qword [rsp + 0x20], rax
call fcn.180015330
mov dword [rbx + 0x21c], 1
mov eax, dword [rbx + 0x21c]
mov rsi, qword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret
mov eax, dword [rbx + 0x21c]
add rsp, 0x60
pop rbx
ret
Function at 0x18000e980
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.orcshk364.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
mov qword [0x1800d0778], rax
test rax, rax
je 0x18000ea76
lea rdx, str.SetHooks
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d0778]
lea rdx, str.UnSetHooks
mov qword [0x1800d5760], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d0778]
lea rdx, str.SetKeyboardFilterHook
mov qword [0x1800d5768], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d0778]
lea rdx, str.SetMouseFilterHook
mov qword [0x1800d5770], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d0778]
lea rdx, str.GetHookThreadMsgId
mov qword [0x1800d5778], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d0778]
lea rdx, str.SetLocalInputsExtraInfo
mov qword [0x1800d5780], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d5788], rax
mov rax, qword [0x1800d0778]
test rax, rax
je 0x18000ea76
cmp qword [0x1800d5760], rbx
je 0x18000ea76
cmp qword [0x1800d5768], rbx
je 0x18000ea76
cmp qword [0x1800d5770], rbx
je 0x18000ea76
cmp qword [0x1800d5778], rbx
lea ecx, [rbx + 1]
jne 0x18000ea78
mov ecx, ebx
test rax, rax
mov dword [0x1800d0780], ecx
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18000eb80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov rsi, r8
mov rdi, rdx
lea rcx, [rsp + 0x52]
xor ebp, ebp
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x50], bp
call fcn.180031540
lea r8, [rbx + 8]
lea rdx, [0x180091940]
lea rcx, [rsp + 0x50]
mov r9, rdi
call fcn.18000e410
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18000ec40
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x34], ebp
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000ec70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov rsi, r8
mov rdi, rdx
lea rcx, [rsp + 0x52]
xor ebp, ebp
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x50], bp
call fcn.180031540
lea r8, [rbx + 8]
lea rdx, [0x180091940]
lea rcx, [rsp + 0x50]
mov r9, rdi
call fcn.18000e410
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
xorpd xmm5, xmm5
movsd qword [rsp + 0x40], xmm5
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18000ed36
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x38], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsd xmm0, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000ed60
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rbp, r8
mov rdi, rdx
lea rcx, [rsp + 0x42]
xor r12d, r12d
xor edx, edx
mov r8d, 0x1fe
mov esi, r9d
mov word [rsp + 0x40], r12w
call fcn.180031540
lea r8, [rbx + 8]
lea rdx, [0x180091940]
lea rcx, [rsp + 0x40]
mov r9, rdi
call fcn.18000e410
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18000ee16
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9d, [r12 + 4]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000ee40
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x268
movaps xmmword [rsp + 0x250], xmm6
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rsi, r8
mov rdi, rdx
lea rcx, [rsp + 0x42]
xor ebp, ebp
xor edx, edx
movapd xmm6, xmm3
mov r8d, 0x1fe
mov word [rsp + 0x40], bp
call fcn.180031540
lea r8, [rbx + 8]
lea rdx, [0x180091940]
lea rcx, [rsp + 0x40]
mov r9, rdi
call fcn.18000e410
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
movsd qword [rsp + 0x38], xmm6
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18000eefc
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9d, [rbp + 3]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18002f6f0
movaps xmm6, xmmword [rsp + 0x250]
add rsp, 0x268
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18000ef20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
xor ebx, ebx
mov rsi, rcx
lea rax, [rsp + 0x50]
mov rdx, rcx
mov rcx, qword [rdi]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x50]
cmp r11d, 2
jb 0x18000efc2
add r11d, 2
mov eax, 2
mov dword [rsp + 0x50], r11d
shr r11d, 1
mov ecx, r11d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.18002f788
mov rbx, rax
test rax, rax
je 0x18000efc2
mov rcx, qword [rdi]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000f010
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
or rbp, 0xffffffffffffffff
xor eax, eax
lea rbx, [0x1800d09a8]
mov rdi, rbx
mov rcx, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
jne 0x18000f178
lea r8, [rsp + 0x60]
lea rdx, [0x1800d0798]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18000f0f7
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.PATH
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x50]
cmp edx, 2
jb 0x18000f0ec
add edx, 2
mov eax, 2
mov dword [rsp + 0x50], edx
shr edx, 1
mov ecx, edx
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.18002f788
mov rbx, rax
test rax, rax
je 0x18000f0ec
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.PATH
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x18000f117
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
jne 0x18000f16d
mov rcx, rbx
call fcn.18002f710
mov ecx, 3
mov eax, 2
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.18002f788
mov rdi, rax
test rax, rax
je 0x18000f1c9
xor eax, eax
lea rcx, [0x18009b1e4]
mov rdx, rdi
mov dword [rdi], eax
sub rdx, rcx
mov word [rdi + 4], ax
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x18000f151
mov rax, rdi
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
mov rax, rbx
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
lea esi, [rcx + 1]
mov eax, 2
mul rsi
cmovo rax, rbp
mov rcx, rax
call fcn.18002f788
mov rdi, rax
test rax, rax
je 0x18000f1c4
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rax
call fcn.180031540
mov rcx, rdi
sub rcx, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x18000f1b0
mov rax, rdi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
Function at 0x180010720
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rsi, rcx
mov rcx, rdx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x18001080d
test al, 1
je 0x180010770
and ebx, 0xfffffffe
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x18001080d
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x20], bx
call fcn.180031540
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [0x18009b6d8]
lea rcx, [rsp + 0x20]
mov r9d, eax
mov r8, rdi
call fcn.1800303e4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800107ff
nop
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [0x18009b6d8]
lea rcx, [rsp + 0x20]
mov r9d, eax
mov r8, rdi
call fcn.1800303e4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc ebx
cmp ebx, 0xa
jge 0x180010841
cmp eax, 0xffffffff
jne 0x1800107c0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.18002f6f0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x18001081c
Function at 0x180011220
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x48]
lea rdx, str.Policy
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftNon_Driver_Signing
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r11, [rbx + 1]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.Policy
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r11, [rbx + 2]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.Policy
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x50]
lea rax, [rbx + 3]
lea r9, [rsp + 0x48]
lea rdx, str.PrivateHash
xor r8d, r8d
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x1800113c0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea rdx, str.Policy
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftNon_Driver_Signing
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea r11, [rbx + 1]
lea rdx, str.Policy
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea r11, [rbx + 2]
lea rdx, str.Policy
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea r11, [rbx + 3]
lea rdx, str.PrivateHash
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret