joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003948c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14012b890]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400394ea
cmp word [rdx], r12w
jne 0x1400394ea
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400394f0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003964b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140039626
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140039529
mov rcx, r9
jmp 0x14003954c
cmp r9, rdx
jae 0x140039563
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14003950d
jmp 0x14003964b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140039620
cmp dword [rsp + 0x80], edi
je 0x140039620
mov rdx, r14
lea r11, [0x14012b890]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400395f9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400395cc
mov word [rbx], r12w
jmp 0x140039647
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400395d5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140039647
cmp word [rsp + 0x70], r12w
jne 0x140039606
cmp rbx, rsi
je 0x1400395c6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14003a118
cmp word [rsp + 0x70], r12w
je 0x14003964b
mov word [rbx], r13w
jmp 0x140039647
lea r11, [0x14012b890]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140039643
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003964b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003e5a0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003e60f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003e60f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003e60f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003e60f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003e60f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003e60f
cmp dword [rcx + 0xf8], 0
je 0x14003e60f
mov ecx, ebx
call fcn.14003e6cc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14003e49c
nop
cmp dword [rbp + 0x20], 0
je 0x14003e65d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003e668
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14003e5a0

Function at 0x14003e7b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003e5a0

Function at 0x140044668
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400446b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400446b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400446b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400446b2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400446b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400446b4
xor al, al
add rsp, 0x28
ret

Function at 0x14004af68
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14004afec
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140077150]
cmp byte [rcx + rax], 0
je 0x14004afec
dec r8
sub rdx, 1
jne 0x14004afd2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14004fc08
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004fc38
xor eax, eax
jmp 0x14004fcfb
mov rbp, rbx
cmp word [rax], si
je 0x14004fc5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004fc44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004fc40
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003e3ec
movsxd r14, eax
test eax, eax
jne 0x14004fc9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004fc31
mov rcx, r14
call fcn.1400347d4
mov rdi, rax
test rax, rax
jne 0x14004fcb4
xor ecx, ecx
call fcn.1400321e8
jmp 0x14004fc90
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003e3ec
test eax, eax
jne 0x14004fce5
mov rcx, rdi
call fcn.1400321e8
jmp 0x14004fcef
xor ecx, ecx
call fcn.1400321e8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140052050
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14003a118
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003a118
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400521a0
cmp rax, 0xffffffffffffffff
je 0x1400521a0
xor edi, edi
test rbp, rbp
jle 0x14005214b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140032170
mov rbx, rax
test rax, rax
jne 0x1400520d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140052141
mov edx, 0x8000
mov ecx, r14d
call fcn.14004c338
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140038610
cmp eax, 0xffffffff
je 0x140052121
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400520e8
mov edx, r15d
mov ecx, r14d
call fcn.14004c338
jmp 0x140052141
cmp byte [rsi + 0x38], dil
je 0x140052138
cmp dword [rsi + 0x34], 5
jne 0x140052138
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140052141
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400321e8
jmp 0x1400521b4
jns 0x1400521b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003a118
cmp rax, 0xffffffffffffffff
jne 0x14005216c
cmp byte [rsi + 0x30], dil
je 0x1400521b4
mov edi, dword [rsi + 0x2c]
jmp 0x1400521b4
mov ecx, r14d
call fcn.140040bc0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400521b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400521b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400521ad
mov eax, dword [rsi + 0x2c]
jmp 0x1400521b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003a118
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140052290
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400522b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400522b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10687f4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x0109d1a0]
xor rax, rsp
mov qword [rsp + 0x850], rax
lea r9, [0x01066848]
lea r8, [0x01066864]
lea rcx, [rsp + 0x50]
mov edx, 0x400
call fcn.01068788
test eax, eax
je 0x1068842
lea rcx, [0x01066870]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x106892c
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x106887d
lea rcx, [0x01066888]
jmp 0x1068837
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x44]
mov r9d, 4
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
lea r8, [rsp + 0x48]
mov edx, 0x222700
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10688c5
lea rcx, [0x010668a0]
jmp 0x1068837
movzx eax, word [rsp + 0x40]
mov dword [0x010aaf58], eax
sub eax, 1
je 0x10688ea
sub eax, 2
je 0x10688e1
cmp eax, 2
jne 0x1068923
jmp 0x10688f7
lea rcx, [0x010668d0]
jmp 0x10688f1
lea rcx, [0x010668b8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rdx, [0x010aadd0]
lea rcx, [0x010aad00]
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x1068923
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0x7e]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.0107dbd0
add rsp, 0x860
pop rbx
ret
Function at 0x106a1d8
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub rsp, 0x198
mov rax, qword [0x0109d1a0]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x010aaf30], 0
jne 0x106a340
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x114
mov dword [0x010aaf30], 1
call fcn.0107f150
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x106a340
cmp dword [rsp + 0x44], 5
jne 0x106a251
mov eax, dword [rsp + 0x48]
neg eax
sbb ecx, ecx
neg ecx
add ecx, 2
mov dword [0x010aaf30], ecx
jmp 0x106a26a
mov eax, dword [0x010aaf30]
cmp dword [rsp + 0x44], 6
Function at 0x106b0f8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
cmp ecx, 2
mov dword [0x010aacd4], ecx
setne al
cmp ecx, 4
mov dword [0x010aacdc], edx
mov dword [0x010aacd8], eax
mov dword [0x010aace8], r8d
je 0x106b140
cmp ecx, 1
je 0x106b140
mov eax, dword [0x010a0ad8]
mov dword [0x010aace4], eax
add eax, 1
mov dword [0x010a0ad8], eax
jmp 0x106b147
and dword [0x010aace4], 0
mov rcx, qword [0x010aaac8]
lea rdx, [0x010aacd0]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
mov ebx, eax
jne 0x106b16e
lea rcx, [0x01066f28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x106b17c
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
sub rsp, 0x4e0
mov rax, qword [0x0109d1a0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
lea rcx, [rsp + 0x70]
lea rdx, [0x01066f50]
mov r8d, 0x58
call fcn.01083500
lea rdx, [rsp + 0xd0]
mov r8d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x106b25c
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbx, rax
je 0x106b25c
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
lea rax, [0x010670a8]
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
lea r8, [0x01066fa8]
lea rdx, [0x010666a8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r9d, 4
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x106b253
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.0107dbd0
add rsp, 0x4e0
pop rbx
ret

Function at 0x106b27c
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x106b318
lea rdx, [0x010666a8]
mov r8d, 0x10024
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rbx, rax
je 0x106b30f
lea r8, [0x010aacd0]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x106b2fd
jmp 0x106b2de
cmp dword [0x010aacd4], 3
jne 0x106b2fd
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x010aacd0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x106b2d5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x106b32c
Capabilities:
Get session user name
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x80
mov rax, qword [0x0109d1a0]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edi, edi
lea rcx, [rsp + 0x58]
lea rdx, [0x01066fe8]
lea r8d, [rdi + 0x20]
call fcn.01083500
mov ecx, 0xfffe
mov dword [rsp + 0x50], 0x7fff
call fcn.0107d614
test rax, rax
mov rbx, rax
je 0x106b51d
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ebp, [rdi + 1]
test eax, eax
je 0x106b3ad
lea r8d, [rdi + 0xf]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.0107e6e4
test eax, eax
cmove edi, ebp
mov rcx, rbx
call fcn.0107d4f0
test edi, edi
je 0x106b51d
cmp dword [0x010aafa0], 0
je 0x106b51d
lea rcx, [0x01067450]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
cmp rax, 0xffffffffffffffff
je 0x106b41d
lea rcx, [0x01067450]
mov r8, rax
mov edx, ebp
call fcn.01075b48
test rax, rax
mov rbx, rax
je 0x106b41d
mov edx, 0x171f00
mov rcx, rax
call fcn.01075cc8
cmp rbx, 0xffffffffffffffff
je 0x106b41d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
lea rdx, [0x010668e8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x106b47d
lea rax, [rsp + 0x40]
lea rdx, [0x01067008]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [rsp + 0x40], 0
lea rcx, [0x01067338]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
cmp rax, 0xffffffffffffffff
jne 0x106b4a4
xor ebx, ebx
jmp 0x106b4be
lea rcx, [0x01067338]
mov r8, rax
mov edx, ebp
call fcn.01075b48
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x106b4fb
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x54]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, 4
mov edx, 0x22078c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x010aafc0], 0
je 0x106b50b
mov ecx, ebp
call fcn.010741c0
mov edx, 0xac44
mov r8d, 0x18
mov ecx, ebp
call fcn.01074e88
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.0107dbd0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x106b548
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x0109d1a0]
xor rax, rsp
mov qword [rsp + 0x420], rax
xor ebx, ebx
mov rsi, rcx
cmp dword [0x010aafd4], ebx
je 0x106b60c
lea rcx, [rsp + 0x20]
mov edx, 0x400
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [0x01067020]
lea rcx, [rsp + 0x20]
mov qword [rdi - 2], rax
mov rax, qword [0x01067028]
mov qword [rdi + 6], rax
mov rax, qword [0x01067030]
mov qword [rdi + 0xe], rax
mov eax, dword [0x01067038]
mov dword [rdi + 0x16], eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp rax, rbx
mov rdi, rax
je 0x106b5ff
lea rdx, [0x01067040]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
je 0x106b5f6
xor edx, edx
mov rcx, rsi
call rax
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [0x010aaf10]
mov dword [rcx], 1
mov eax, ebx
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.0107dbd0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x106b63c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x430
mov rax, qword [0x0109d1a0]
xor rax, rsp
mov qword [rsp + 0x420], rax
cmp dword [0x010aafd4], 0
mov rbx, rcx
je 0x106b6f3
lea rcx, [rsp + 0x20]
mov edx, 0x400
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [0x01067020]
lea rcx, [rsp + 0x20]
mov qword [rdi - 2], rax
mov rax, qword [0x01067028]
mov qword [rdi + 6], rax
mov rax, qword [0x01067030]
mov qword [rdi + 0xe], rax
mov eax, dword [0x01067038]
mov dword [rdi + 0x16], eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rdi, rax
je 0x106b6e9
lea rdx, [0x01067060]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x106b6e0
mov rcx, rbx
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x010aaf10]
and dword [rax], 0
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.0107dbd0
mov rbx, qword [rsp + 0x448]
add rsp, 0x430
pop rdi
ret
Function at 0x106b71c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x280
mov rax, qword [0x0109d1a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
and dword [rsp + 0x30], 0
mov rbp, rcx
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x234
call fcn.0107f150
mov rax, qword [0x0109d100]
lea rcx, [0x0109d100]
call qword [rax + 0x18]
xor edx, edx
lea rdi, [rax + 0x18]
lea ecx, [rdx + 2]
mov qword [rsp + 0x20], rdi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
or r13, 0xffffffffffffffff
cmp rax, r13
mov rsi, rax
jne 0x106b7d0
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x106b7a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp]
mov eax, r13d
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x106b7c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x106b8d6
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x30], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x106b88d
mov ebx, 1
xor eax, eax
lea rdi, [rsp + 0x5c]
mov rcx, r13
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x5c]
not rcx
sub rcx, rbx
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.0106bba4
lea rcx, [rsp + 0x20]
call fcn.0106b904
mov rdx, qword [rbp]
mov rdi, qword [rsp + 0x20]
cmp dword [rdx - 0x10], 0
je 0x106b86a
test rdx, rdx
je 0x106b86a
cmp dword [rdi - 0x10], 0
jl 0x106b86a
mov rcx, rdi
call fcn.0107dec4
test rax, rax
je 0x106b86a
sub rax, rdi
sar rax, 1
cmp eax, r13d
je 0x106b86a
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
jne 0x106b880
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x106b88f
jmp 0x106b7f2
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x106b88f
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x106b8b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp]
mov ecx, r13d
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ecx
add ecx, r13d
test ecx, ecx
jg 0x106b8d4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.0107dbd0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x106ba80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r13, rcx
mov r12d, edx
lea rcx, [0x010a0b60]
xor edx, edx
xor ebx, ebx
call fcn.0107d110
lea ebp, [rbx + 1]
jmp 0x106bb5d
test rbx, rbx
jne 0x106bb69
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rbx, rax
je 0x106bb4c
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x106baf9
xor ebx, ebx
jmp 0x106bb47
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x106baf5
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x106bb36
cmp rdi, r11
jae 0x106baf5
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x106bb24
cmp rdi, r11
jae 0x106baf5
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
jne 0x106bb6b
lea rcx, [0x010a0b60]
mov edx, ebp
call fcn.0107d110
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x106bab6
xor esi, esi
test rsi, rsi
jne 0x106bb74
xor eax, eax
jmp 0x106bb82
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.0106bcd0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret