joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005738c
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x1400573d1
mov eax, 6
jmp 0x1400574c7
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r15d, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x3c], xmm0
and qword [rsp + 0x4c], 0
mov dword [rsp + 0x38], SafeArrayAllocDescriptor
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400574b2
cmp dword [rsp + 0x44], r14d
jne 0x140057485
mov r8d, dword [rsp + 0x40]
cmp r8d, r15d
je 0x140057485
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140057485
mov rcx, rax
call fcn.14005be38
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140057461
mov qword [rdx], rsi
add qword [rdi + 8], 8
jmp 0x14005746e
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.14003f234
jmp 0x140057485
mov dword [rsp + 0x38], SafeArrayAllocDescriptor
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14005741c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400574c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400587c4
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
call fcn.1400027c4
mov rcx, rax
test rsi, rsi
jne 0x140058833
test rax, rax
je 0x1400589ca
mov rdx, qword [rax]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x40], 1
jmp 0x1400589a1
test rcx, rcx
je 0x1400589ca
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rsi
lea r14d, [r9 + 4]
mov edx, r14d
lea ecx, [r9 + 0x42]
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
cmp eax, 1
jne 0x140058909
mov edx, dword [rsp + 0x30]
add edx, eax
js 0x1400589d9
mov ecx, eax
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400588a8
lea rcx, [rsp + 0x38]
call fcn.140002b54
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rsi
mov edx, r14d
lea ecx, [r9 + 0x42]
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov r14d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x1400589d9
cmp eax, dword [rbx - 0xc]
jg 0x1400589d9
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
test r14d, r14d
je 0x140058909
lea rcx, [rsp + 0x38]
call fcn.140003970
mov rbx, qword [rsp + 0x38]
cmp dword [rbx - 0x10], r15d
jne 0x14005896e
mov r14d, 0x2b8
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x200
mov r9d, r14d
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14005896e
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14005894d
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140002a20
mov rbx, qword [rsp + 0x38]
lea rcx, [rbx - 0x18]
call fcn.1400028e4
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x40], 1
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1400589a1
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
nop
jmp 0x1400589d8
nop
mov ecx, 0x80070057
call fcn.1400312f0
int3
Function at 0x140058d20
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140058e03
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140058e47
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.1400592a4
lea r8, [rsp + 0x6c]
mov rdx, qword [rax]
lea rcx, [rsp + 0x20]
call fcn.1400080b0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140058d98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058e03
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x28], rbx
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058e25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x140059128
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x20]
or rax, 0xffffffffffffffff
cmp rcx, rax
jne 0x14005913f
xor al, al
jmp 0x14005916c
xor ebx, ebx
test rdx, rdx
jne 0x14005914a
mov eax, ebx
jmp 0x140059153
inc rax
cmp word [rdx + rax*2], bx
jne 0x14005914a
lea r8d, [rax + rax]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x14005a90c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x47], rax
movsxd rdi, ecx
cmp edi, 0x26
ja 0x14005a9f5
lea rax, [rbp - 0x61]
mov r9d, 0x20219
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Licenses1299B4B9_DFCC_476D_98F0_F65A2B46C96D
mov rcx, 0xffffffff80000000
or ebx, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005a9f1
and dword [rbp - 0x69], eax
lea r9, [rbp - 0x69]
and dword [rbp - 0x65], eax
xor r8d, r8d
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a9e7
cmp dword [rbp - 0x69], 3
jne 0x14005a9e7
cmp dword [rbp - 0x65], 0x9c
jne 0x14005a9e7
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x69]
lea rax, [rbp - 0x59]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a9e7
cmp dword [rbp - 0x69], 3
jne 0x14005a9e7
mov ebx, dword [rbp + rdi*4 - 0x59]
lea ecx, [rdi*4 + 0xf5b7]
add ebx, edi
xor ebx, ecx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14005a9f8
or eax, 0xffffffff
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14005aec8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
and dword [rdx], 0
and qword [rdx + 8], 0
mov edx, ecx
lea rcx, [rsp + 0x48]
call fcn.14005b118
nop
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005af32
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14005afb4
and dword [rsp + 0x48], 0
mov qword [rsp + 0x28], rbx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005afa6
cmp dword [rsp + 0x48], 3
jne 0x14005afa6
mov ecx, dword [rbx]
call fcn.14002657c
mov qword [rbx + 8], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005af9c
cmp dword [rsp + 0x48], 3
je 0x14005afa9
and dword [rbx], 0
and qword [rbx + 8], 0
jmp 0x14005afa9
and dword [rbx], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx + 8], 0
setne al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14005b190
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov edi, ecx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140002cbc
mov qword [rbp + 0x38], rax
xor r15d, r15d
test rax, rax
je 0x14005b1c8
mov rcx, rax
call fcn.14005aa28
mov rbx, rax
jmp 0x14005b1cb
mov rbx, r15
mov byte [rbx], 1
mov rax, qword [rbx + 8]
mov dword [rax], edi
mov dword [rbp - 0x20], r15d
mov qword [rbp - 0x18], r15
lea rdx, [rbp - 0x20]
mov ecx, edi
call fcn.14005aec8
test al, al
je 0x14005b36e
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x14005b263
mov edx, 0xe0
cmp dword [rbp - 0x10], edx
jne 0x14005b360
mov rcx, qword [rbx + 8]
call fcn.140002da0
mov byte [rbx + 1], 1
mov rax, qword [rbp - 8]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 8]
cmp dword [rax], edi
jne 0x14005b360
mov word [rax + 0x32], r15w
mov rax, qword [rbx + 8]
mov word [rax + 0xbe], r15w
mov byte [rbx], r15b
jmp 0x14005b360
call fcn.14005b808
test al, al
je 0x14005b360
mov rsi, qword [rbp - 0x18]
mov r14d, r15d
mov eax, dword [rbp - 0x20]
shr eax, 2
cmp eax, 1
je 0x14005b2a2
mov edx, r14d
mov ecx, dword [rsi]
call fcn.14005aa1c
mov dword [rsi], eax
lea rsi, [rsi + 4]
inc r14d
mov eax, dword [rbp - 0x20]
shr eax, 2
dec eax
cmp r14d, eax
jb 0x14005b282
mov rsi, qword [rbp - 0x18]
cmp dword [rsi + 0xc0], edi
jne 0x14005b360
mov byte [rbx], r15b
mov rax, qword [rbx + 8]
mov dword [rax], edi
mov dword [rbp + 0x30], r15d
lea rdx, [rsi + 2]
lea rcx, [rbp + 0x38]
call fcn.140002cec
nop
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x38]
mov ecx, dword [rsi + 0xc0]
call fcn.14005afc8
mov rdi, rax
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14005b301
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rdi, rdi
je 0x14005b360
mov rcx, qword [rbx + 8]
mov al, byte [rsi]
mov byte [rcx + 0xdd], al
mov rcx, qword [rbx + 8]
mov eax, dword [rbp + 0x30]
mov dword [rcx + 0xc4], eax
lea r8, [rsi + 0x52]
lea rdx, [rsi + 0x82]
mov byte [rsp + 0x30], r15b
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [rsi + 2]
mov rcx, rbx
call fcn.14005abcc
mov edx, 0xffff
mov r9d, edx
mov r8d, edx
mov byte [rsp + 0x20], r15b
mov rcx, rbx
call fcn.14005b388
mov edx, 1
mov rcx, qword [rbp - 0x18]
call fcn.140002da0
mov rax, rbx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005b560
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
and dword [rcx], 0
and qword [rcx + 8], 0
lea rcx, [rsp + 0x40]
call fcn.14005b7a0
nop
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005b5c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14005b64a
and dword [rsp + 0x40], 0
mov qword [rsp + 0x28], rbx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005b63c
cmp dword [rsp + 0x40], 3
jne 0x14005b63c
mov ecx, dword [rbx]
call fcn.14002657c
mov qword [rbx + 8], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005b632
cmp dword [rsp + 0x40], 3
je 0x14005b63f
and dword [rbx], 0
and qword [rbx + 8], 0
jmp 0x14005b63f
and dword [rbx], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx + 8], 0
setne al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14005b700
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
sub rsp, 0x60
call fcn.14005b4c4
lea rcx, [rsp + 0x40]
mov rbx, rax
mov byte [rax], 1
and dword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
call fcn.14005b560
test al, al
je 0x14005b796
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 1
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x14005b787
mov edx, 0x144
cmp dword [rsp + 0x50], edx
jne 0x14005b787
mov rcx, qword [rbx + 8]
call fcn.140002da0
mov byte [rbx + 1], 1
mov rax, qword [rsp + 0x58]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x27
jne 0x14005b787
mov byte [rbx], 0
mov rcx, qword [rsp + 0x48]
mov edx, 1
call fcn.140002da0
mov rax, rbx
add rsp, 0x60
pop rbx
ret
Function at 0x14005b940
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
mov esi, 0x10000
test rax, rax
je 0x14005b968
sub rbx, rax
add rbx, rsi
cmp rbx, rdi
jae 0x14005b9f2
cmp rbx, qword [0x14008e618]
jb 0x14005b98c
cmp rbx, qword [0x14008e620]
ja 0x14005b98c
add rbx, 0x8000000
jmp 0x14005b968
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14005b9f2
mov rcx, qword [rsp + 0x38]
cmp dword [rsp + 0x40], esi
jne 0x14005ba04
cmp rcx, rsi
jb 0x14005ba04
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x14005b9f4
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14005b965
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14005b968
mov rax, rsi
sub rax, rcx
add rbx, rax
jmp 0x14005b968

Function at 0x14005bbfc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14008e738], eax
je 0x14005bc25
mov eax, 0x10dd
jmp 0x14005bd32
mov eax, dword [0x14008e73c]
test eax, eax
jne 0x14005bd32
test rbp, rbp
jne 0x14005bc40
lea eax, [rbp + 0x57]
jmp 0x14005bd32
test rsi, rsi
jne 0x14005bc4d
lea eax, [rsi + 6]
jmp 0x14005bd32
cmp qword [rsi], 0
jne 0x14005bc63
mov eax, 6
mov dword [0x14008e73c], eax
jmp 0x14005bd2b
mov ecx, 0x30
call fcn.140002cbc
mov rdi, rax
test rax, rax
jne 0x14005bc7d
lea ebx, [rax + 8]
jmp 0x14005bd11
mov rcx, qword [rsi]
xor edx, edx
call fcn.140018548
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.140018548
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x14005bd03
cmp rdx, 0x1e
ja 0x14005bd03
cmp qword [rbx + 0x50], rax
jne 0x14005bd03
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14005bcd4
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x14005bd11
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x14008e750]
mov qword [rdi], rax
xor eax, eax
mov qword [0x14008e750], rdi
jmp 0x14005bd32
cmp dword [0x14008fb90], 0
mov ebx, 9
jne 0x14005bd1c
mov dword [0x14008e73c], ebx
test rdi, rdi
je 0x14005bd29
mov edx, 0x30
mov rcx, rdi
call fcn.140002da0
mov eax, ebx
mov qword [0x14008e740], rsi
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005bd40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14008e738], eax
je 0x14005bd66
mov eax, 0x10dd
jmp 0x14005be27
mov rdi, qword [0x14008e750]
test rdi, rdi
je 0x14005bddc
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
mov r8d, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
movzx edx, byte [rax + 0x3e]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [rdi + 8], 0
jne 0x14005bdc4
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x14005bdc4
xor edx, edx
mov rbx, rsi
mov rcx, rsi
and rbx, 0xffffffffffff0000
lea r8d, [rdx + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
and qword [rdi + 0x20], 0
mov rbx, qword [rdi]
mov edx, 0x30
mov rcx, rdi
call fcn.140002da0
mov rdi, rbx
test rbx, rbx
jne 0x14005bd72
and qword [0x14008e750], 0
call fcn.1400168f0
mov rdi, qword [0x14008e748]
test rdi, rdi
je 0x14005be16
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_ResumeThread
mov rbx, qword [rdi]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rdi
call fcn.140002da0
mov rdi, rbx
test rbx, rbx
jne 0x14005bdf5
and qword [0x14008e748], 0
and dword [0x14008e738], 0
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14005be38
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x14008e73c]
mov rdi, rcx
test eax, eax
jne 0x14005beba
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
je 0x14005beb8
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140002cbc
mov rbx, rax
test rax, rax
jne 0x14005be70
lea edi, [rax + 8]
jmp 0x14005be91
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x14005bea3
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.140002da0
and qword [0x14008e740], 0
mov eax, edi
mov dword [0x14008e73c], edi
jmp 0x14005beba
mov rax, qword [0x14008e748]
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [0x14008e748], rbx
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005c7d4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14005c7f5
mov eax, 0x80070057
jmp 0x14005c858
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14005c809
mov eax, 0x80070002
jmp 0x14005c858
mov ecx, DispGetParam
call sub.gdiplus.dll_GdipAlloc
mov rdi, rax
test rax, rax
je 0x14005c853
and qword [rsp + 0x38], 0
lea rax, [0x14006b720]
lea rdx, [rsp + 0x38]
mov qword [rdi], rax
mov rcx, rbx
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov rcx, qword [rsp + 0x38]
mov qword [rdi + 8], rcx
mov rcx, rsi
mov dword [rdi + 0x10], eax
call fcn.14002dec0
xor eax, eax
mov qword [rsi], rdi
jmp 0x14005c858
mov eax, 0x80004005
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005d398
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp + 7], 0
lea rax, [rbp + 7]
mov ebx, r8d
mov qword [r11 - 0x78], rax
mov esi, edx
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftVisualStudio17.0General
mov r9d, 0x20019
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005d463
mov rdi, qword [rbp + 7]
lea rdx, str.ImageScaling_d
mov r8d, esi
lea rcx, [rbp + 0xf]
call fcn.14005ca80
and dword [rbp - 9], 0
lea rax, [rbp - 5]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 1]
lea rax, [rbp - 9]
mov dword [rbp - 5], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005d455
cmp dword [rbp - 1], 4
jne 0x14005d455
mov r8d, dword [rbp - 9]
lea edx, [r8 - 1]
cmp edx, 6
cmovbe ebx, r8d
test rdi, rdi
je 0x14005d463
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14005db98
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14005dc10
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14005dc10
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14005dc10
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14005dc04
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14005dc22
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14005dbf2
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14005dc12