joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400186a0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x18], 0xf
mov qword [r11 - 0x20], 0
mov byte [rsp + 0x48], 0
xor sil, sil
movzx eax, byte [rcx + 0x114]
test al, al
je 0x1400186fd
call fcn.140018630
xor eax, eax
xchg byte [rdi + 0x114], al
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140018717
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx esi, al
mov qword [rsp + 0x30], 0
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test sil, sil
je 0x140018755
mov rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
jmp 0x140018768
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140018765
mov rdx, qword [rbx]
jmp 0x140018768
mov rdx, rbx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, eax
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001879b
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
mov rdx, rbx
call qword [rax + 0x10]
nop
cmp qword [rsp + 0x60], 0x10
jb 0x1400187ae
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140018ae0
Capabilities:
Get file size

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
test al, al
jne 0x140018b20
xor edi, edi
jmp 0x140018b3e
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [rsp + 0x40]
or eax, 0xffffffff
cmp dword [rsp + 0x44], 0
cmovne edi, eax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140018c90
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx]
call qword [rax + 0x28]
test al, al
je 0x140018dda
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x40]
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x68], shutdown
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], r14b
xor bpl, bpl
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140018d1f
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx ebp, al
mov rcx, rsi
call fcn.140018e00
mov qword [rsp + 0x30], r14
mov r9d, 2
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test bpl, bpl
je 0x140018d5f
mov rax, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
jmp 0x140018d72
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140018d6f
mov rdx, qword [rdi]
jmp 0x140018d72
mov rdx, rdi
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
mov r8d, eax
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140018dab
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rdi
call qword [rax + 0x10]
nop
cmp qword [rsp + 0x68], 0x10
jb 0x140018dbe
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x68], shutdown
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], 0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140020650
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbx, rcx
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
xor r8d, r8d
xor edx, edx
call fcn.1400235a0
mov qword [rbx], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x30], rdi
call fcn.140021d30
mov qword [rbx + 0x28], rax
lea rcx, [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140022fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, qword [rcx + 0x18]
mov r12, r8
mov rbx, rdx
lea rax, [r14 + 0x77359400]
mov rdi, rcx
cmp rax, rdx
ja 0x140023019
lea r14, [rdx - 0x77359400]
mov r15, qword [rcx + 0x20]
lea rax, [r15 - 0x77359400]
cmp rax, rdx
jb 0x140023030
lea r15, [rdx + 0x77359400]
mov ecx, dword [rcx + 0x10]
xor edx, edx
mov rax, rbx
div rcx
mov rax, r14
mov qword [rsp + 0x70], rbp
sub rbx, rdx
xor edx, edx
div rcx
mov eax, ecx
mov rsi, rbx
sub rax, rdx
xor edx, edx
add r14, rax
mov rax, r15
div rcx
sub r15, rdx
cmp rbx, r14
jbe 0x1400230ed
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov r8d, gethostbyname
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [rsp + 0x40], 0x10000
jne 0x1400230e2
mov edx, dword [rdi + 0x10]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x1400230e8
mov ecx, 0x20
call qword [sym.imp.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rdx, rax
test rax, rax
je 0x14002318a
mov eax, dword [rdi + 0x10]
mov qword [rdx], rbp
mov qword [rdx + 8], rbp
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [r12], rdx
mov al, 1
jmp 0x14002316a
mov eax, dword [rdi + 0x10]
sub rsi, rax
cmp rsi, r14
ja 0x140023070
cmp rbx, r15
jae 0x140023168
lea rdx, [rsp + 0x20]
mov r8d, gethostbyname
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [rsp + 0x40], 0x10000
jne 0x14002315d
mov edx, dword [rdi + 0x10]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x140023163
mov ecx, 0x20
call qword [sym.imp.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rdx, rax
test rax, rax
je 0x14002318a
mov ecx, dword [rdi + 0x10]
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [r12], rax
mov al, 1
jmp 0x14002316a
mov eax, dword [rdi + 0x10]
add rbx, rax
cmp rbx, r15
jb 0x1400230f2
xor al, al
mov rbp, qword [rsp + 0x70]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
xor edx, edx
mov al, 1
mov qword [r12], rdx
jmp 0x14002316a
Function at 0x14002c6c0
Capabilities:
Enumerate device drivers on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rdx
xor r13d, r13d
mov dword [rbp - 0x50], r13d
lea r8, [rbp - 0x50]
xor edx, edx
xor ecx, ecx
call sub.PSAPI.DLL_EnumDeviceDrivers
mov edx, dword [rbp - 0x50]
shr rdx, 3
lea rcx, [rbp - 0x40]
call fcn.14002b630
nop
lea r8, [rbp - 0x50]
mov edx, dword [rbp - 0x50]
mov r12, qword [rbp - 0x40]
mov rcx, r12
call sub.PSAPI.DLL_EnumDeviceDrivers
test eax, eax
je 0x14002c831
mov rsi, r12
mov r15, qword [rbp - 0x38]
cmp r12, r15
je 0x14002c831
mov rbx, qword [rsi]
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r13
mov word [rbp - 0x28], r13w
xor r8d, r8d
mov edx, 0x104
lea rcx, [rbp - 0x28]
call fcn.140007e20
lea rdi, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdi, qword [rbp - 0x28]
movzx eax, r13w
mov ecx, 0x104
rep stosw word [rdi], ax
mov qword [rbp - 0x18], 0x104
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov word [rax + 0x208], r13w
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov r8d, dword [rbp - 0x18]
mov rcx, rbx
call sub.PSAPI.DLL_GetDeviceDriverBaseNameW
test eax, eax
je 0x14002c800
mov rdi, qword [r14]
mov rbx, qword [r14 + 8]
cmp rdi, rbx
je 0x14002c800
nop
cmp qword [rdi + 0x18], 8
jb 0x14002c7dc
mov rdx, qword [rdi]
jmp 0x14002c7df
mov rdx, rdi
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.MSVCR120.dll__wcsicmp]
test eax, eax
je 0x14002c81c
add rdi, 0x20
cmp rdi, rbx
jne 0x14002c7d0
cmp qword [rbp - 0x10], 8
jb 0x14002c810
mov rcx, qword [rbp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
add rsi, 8
cmp rsi, r15
jmp 0x14002c742
cmp qword [rbp - 0x10], 8
jb 0x14002c82c
mov rcx, qword [rbp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov dil, 1
jmp 0x14002c834
xor dil, dil
test r12, r12
je 0x14002c841
mov rcx, r12
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
movzx eax, dil
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x14002ca50
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub rsp, 0x258
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rdx + 0x18], 8
jb 0x14002ca73
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea edx, [r9 + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14010a480
add rsp, 0x258
ret
Function at 0x14002cbf0
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x2b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r14, rdx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400158e0
nop
mov rbp, qword [rsp + 0x20]
cmp rbp, 0xffffffffffffffff
je 0x14002cd56
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x64]
call sub.MSVCR120.dll_memset
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rbp
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14002cd56
xor r15d, r15d
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [r14]
mov rdi, qword [r14 + 8]
cmp rbx, rdi
je 0x14002cd3c
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
cmp word [rsp + 0x8c], r15w
jne 0x14002ccc4
mov r8, r15
jmp 0x14002ccda
lea rax, [rsp + 0x8c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14002ccd0
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x38]
call fcn.140007670
cmp qword [rbx + 0x18], 8
jb 0x14002ccf8
mov rdx, qword [rbx]
jmp 0x14002ccfb
mov rdx, rbx
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll__wcsicmp]
test eax, eax
sete sil
cmp qword [rsp + 0x50], 8
jb 0x14002cd2a
mov rcx, qword [rsp + 0x38]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
test sil, sil
jne 0x14002cd52
add rbx, 0x20
cmp rbx, rdi
jne 0x14002cca0
lea rdx, [rsp + 0x60]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x14002cd56
jmp 0x14002cc90
mov bl, 1
jmp 0x14002cd58
xor bl, bl
test rbp, rbp
je 0x14002cd64
mov rcx, rbp
call qword [rsp + 0x28]
movzx eax, bl
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14002d880
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov rbp, r8
mov r14, rdx
xor ebx, ebx
mov qword [r11 + 0x20], rbx
lea rax, [r11 + 0x20]
mov qword [r11 - 0x58], rax
lea r9, [0x140121848]
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [0x140135210]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14002d8da
mov qword [rsp + 0x98], rbx
jmp 0x14002d99a
mov rdi, qword [rsp + 0x98]
test rdi, rdi
jne 0x14002d8f2
mov ecx, 0x80004003
call fcn.14010b320
int3
cmp qword [r14 + 0x18], 8
jb 0x14002d8fc
mov r14, qword [r14]
mov ecx, 0x18
call fcn.14010a29c
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14002d93f
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
jne 0x14002d942
test r14, r14
je 0x14002d942
mov ecx, 0x8007000e
call fcn.14010b320
int3
mov rsi, rbx
mov qword [rsp + 0x58], rsi
test rsi, rsi
jne 0x14002d957
mov ecx, 0x8007000e
call fcn.14010b320
nop
mov rax, qword [rdi]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rdi
call qword [rax + 0x18]
test eax, eax
sets bl
mov rcx, rsi
call fcn.14002bd70
test bl, bl
mov rbx, qword [rsp + 0x98]
je 0x14002d99f
xor dil, dil
jmp 0x14002d9a2
mov dil, 1
test rbx, rbx
je 0x14002d9b0
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
movzx eax, dil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14002db70
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rbp
mov r14, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [r8]
mov qword [r8 + 8], rax
mov ebp, 0x20019
call fcn.14002d9d0
mov ecx, 0x20119
test al, al
cmovne ebp, ecx
cmp qword [rdi + 0x18], 8
jb 0x14002dbc0
mov rdi, qword [rdi]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, ebp
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002dc97
mov rdi, qword [rsp + 0x80]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14002da50
nop
xor ecx, ecx
mov dword [rsp + 0x70], ecx
cmp qword [rbx + 0x18], 8
jb 0x14002dc0f
mov rdx, qword [rbx]
jmp 0x14002dc12
mov rdx, rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002dc89
mov edx, dword [rsp + 0x70]
mov rcx, rsi
call fcn.140014680
mov rax, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14002dc4d
mov rbx, qword [rbx]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002dc89
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002dc85
call qword [rsp + 0x40]
mov al, 1
jmp 0x14002dc99
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002dc97
call qword [rsp + 0x40]
xor al, al
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x14003ddd0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r10d, r10d
mov r9d, WSAStartup
mov r11d, r10d
mov r8d, r10d
nop word [rax + rax]
add r9d, r9d
mov eax, 0x80808081
inc r8
mov ecx, r9d
xor ecx, 0x63
sub ecx, r11d
inc r11d
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
mov byte [rsp + r8 - 1], cl
cmp r8, 0x63
jl 0x14003de00
lea rcx, [rsp + 0x88]
mov eax, 0x100
mov dword [rcx], 0x137500
dec rax
jne 0x14003de45
mov rcx, r10
mov eax, r10d
nop word [rax + rax]
movsx r9d, byte [rsp + rcx + 2]
movsx r8d, byte [rsp + rcx]
movsx edx, byte [rsp + rcx + 1]
add r9d, eax
add r10d, 3
add rcx, 3
add r9d, r8d
add eax, 9
add edx, r9d
add r10d, edx
cmp rcx, 0x63
jl 0x14003de60
mov eax, r10d
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14010a480
add rsp, 0x88
ret
Function at 0x140040cb0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x140040cda
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp qword [rsp + 0x38], 8
mov rbx, rax
jb 0x140040cf8
mov rcx, qword [rsp + 0x20]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
xor ecx, ecx
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rcx
mov word [rsp + 0x20], cx
test rbx, rbx
jne 0x140040d27
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14010a480
add rsp, 0x50
pop rbx
ret
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140040d12
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
cmovne rax, rcx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14010a480
add rsp, 0x50
pop rbx
ret

Function at 0x140043a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
lea rcx, [0x140124500]
call fcn.1406a99b2
nop
mov r8, rax
mov rdx, rbx
mov rcx, rsi
push rdx
call 0x1404f3096
mov rbx, rax
test rax, rax
je 0x140043b7d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x140043b7d
mov rdx, rbx
mov rcx, rsi
push rbx
call 0x1403b8320
test rax, rax
je 0x140043b7d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140043b7d
mov edx, ebp
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140043b7d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140043b7d
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call sub.MSVCR120.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 8], rbx
xor esi, esi
mov qword [rsp + 0x58], rsi
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140043b6d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1400437e0
mov qword [rdi], rax
test rax, rax
je 0x140043b6d
mov ecx, dword [rax + 0x10]
mov dword [rax + 0x10], esi
test ecx, ecx
je 0x140043b6d
mov rcx, qword [rdi]
test rcx, rcx
je 0x140043b6a
mov rax, qword [rcx]
lea edx, [rsi + 1]
call qword [rax]
mov qword [rdi], rsi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140043b7d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14007a8c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
lea r10, [rcx + 0x40]
lea rbx, [rdx + 0x10]
mov rsi, rcx
mov r11, r10
sub rsi, rdx
mov rdi, rdx
sub r11, rcx
mov r14, rcx
mov r9b, 0x10
sub r10, rdx
mov r8, rbx
nop word [rax + rax]
movzx eax, byte [r10 + r8 - 1]
dec r8
lea rcx, [rsi + r8]
mov byte [rsi + r8], al
xor byte [r8], al
movzx eax, byte [rcx + r11 + 0x10]
mov byte [rcx + 0x10], al
add r9b, 0xff
jne 0x14007a900
movzx ecx, byte [rdx + 1]
movzx eax, byte [rdx + 0xd]
mov byte [rdx + 1], al
movzx eax, byte [rdx + 9]
mov byte [rdx + 0xd], al
movzx eax, byte [rdx + 5]
mov byte [rdx + 5], cl
movzx ecx, byte [rdx + 2]
mov byte [rdx + 9], al
movzx eax, byte [rdx + 0xa]
mov byte [rdx + 2], al
movzx eax, byte [rdx + 7]
mov byte [rdx + 0xa], cl
movzx ecx, byte [rdx + 3]
mov byte [rdx + 3], al
movzx eax, byte [rdx + 0xb]
mov byte [rdx + 7], al
movzx eax, byte [rdx + 0xf]
mov byte [rdx + 0xf], cl
movzx ecx, byte [rdx + 6]
mov byte [rdx + 0xb], al
movzx eax, byte [rdx + 0xe]
mov byte [rdx + 0xe], cl
mov rcx, rdx
mov byte [rdx + 6], al
call fcn.14007b080
mov byte [rsp + 0x40], pe_nt_image_headers64
mov bpl, 0xd
test bpl, 1
je 0x14007a9b2
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14007aaf0
mov dl, 0x10
mov rcx, rbx
nop
movzx eax, byte [rcx + rsi + 0xf]
lea rcx, [rcx - 1]
xor byte [rcx], al
add dl, 0xff
jne 0x14007a9a0
jmp 0x14007a9d0
mov dl, 0x10
mov rcx, rbx
nop word [rax + rax]
movzx eax, byte [rcx + rsi - 1]
lea rcx, [rcx - 1]
xor byte [rcx], al
add dl, 0xff
jne 0x14007a9c0
mov rcx, rdi
call fcn.14007aed0
movzx eax, byte [rdi + 0xd]
movzx ecx, byte [rdi + 1]
mov byte [rdi + 1], al
movzx eax, byte [rdi + 9]
mov r10b, 0x10
mov byte [rdi + 0xd], al
movzx eax, byte [rdi + 5]
mov byte [rdi + 5], cl
movzx ecx, byte [rdi + 2]
mov byte [rdi + 9], al
movzx eax, byte [rdi + 0xa]
mov byte [rdi + 2], al
movzx eax, byte [rdi + 7]
mov byte [rdi + 0xa], cl
movzx ecx, byte [rdi + 3]
mov byte [rdi + 3], al
movzx eax, byte [rdi + 0xb]
mov byte [rdi + 7], al
movzx eax, byte [rdi + 0xf]
mov byte [rdi + 0xf], cl
movzx ecx, byte [rdi + 6]
mov byte [rdi + 0xb], al
movzx eax, byte [rdi + 0xe]
mov byte [rdi + 6], al
mov byte [rdi + 0xe], cl
mov r9, rbx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r9 - 1]
lea r9, [r9 - 1]
add r10b, 0xff
xor cl, 0x63
rol cl, 1
movzx eax, cl
rol al, 2
movzx r8d, al
rol r8b, 3
xor r8b, cl
xor r8b, al
je 0x14007aaaa
mov al, 1
xor dl, dl
nop dword [rax]
cmp al, r8b
je 0x14007aa86
movzx ecx, al
add al, al
test cl, cl
jns 0x14007aa80
xor al, 0x1b
xor al, cl
inc dl
jne 0x14007aa70
mov ecx, 0xff
mov al, 1
sub cl, dl
je 0x14007aaa5
movzx edx, al
add cl, 0xff
add al, al
test dl, dl
jns 0x14007aa9f
xor al, 0x1b
xor al, dl
test cl, cl
jne 0x14007aa91
movzx ecx, al
jmp 0x14007aaac
xor ecx, ecx
mov byte [r9], cl
test r10b, r10b
jne 0x14007aa40
add bpl, 0xff
jne 0x14007a987
mov cl, 0x10
movzx eax, byte [rbx + rsi - 1]
lea rbx, [rbx - 1]
xor byte [rbx], al
add cl, 0xff
jne 0x14007aac0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret