joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400264e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140026510
cvtsi2ss xmm0, rdx
jmp 0x140026525
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x140069584]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140026553
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140026553
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140026581
cmp rbx, 0x200
jae 0x14002657e
shl rbx, 3
cmp rbx, rcx
jae 0x140026581
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x1400265aa
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140025588
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400266b9
mov rcx, qword [rcx]
movabs r11, 0xcbf29ce484222325
xor r8d, r8d
movzx edx, byte [r8 + rax + 0x10]
movabs r9, 0x100000001b3
xor r11, rdx
inc r8
imul r11, r9
cmp r8, 4
jb 0x140026603
and r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x14002663f
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x1400266ad
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x140026682
mov r10, qword [r10]
cmp r10, rax
je 0x140026638
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140026638
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x1400266cf
cmp qword [rdi + r11*8], r10
jne 0x140026678
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1400265f3
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400266ad
Function at 0x140027588
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [r9]
mov rbx, r8
add eax, eax
mov rdi, r9
mov dword [rsp + 0x30], eax
xor esi, esi
mov dword [r9], esi
lea rax, [r11 - 0x28]
mov rcx, qword [rcx]
lea r9, [r11 - 0x24]
mov qword [r11 - 0x30], rax
xor r8d, r8d
mov qword [r11 - 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027603
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x1400275fe
mov ecx, dword [rsp + 0x30]
test rbx, rbx
je 0x14002761b
test ecx, ecx
je 0x140027618
test cl, 1
jne 0x1400275fe
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14002761b
mov eax, SafeArrayGetDim
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001020
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x140027603

Function at 0x140028054
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov eax, dword [0x1400942b0]
test al, 1
jne 0x1400280aa
or eax, 1
mov dword [0x1400942b0], eax
and qword [0x140093578], 0
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14002819d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x140093578], rax
lea rcx, [0x14002f6d0]
call fcn.140016f00
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400280c1
mov eax, 0x80070002
jmp 0x140028192
test rbx, rbx
je 0x14002819d
mov rax, qword [0x140093578]
mov rdx, rbx
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x1400280ed
add rax, 2
test cx, cx
jne 0x1400280d7
xor eax, eax
jmp 0x1400280f2
sbb eax, eax
or eax, 1
test eax, eax
je 0x140028190
mov rdi, qword [0x140093a60]
test rdi, rdi
je 0x140028125
mov rcx, qword [rdi]
test rcx, rcx
je 0x140028118
mov edx, 2
call fcn.140002ef0
mov edx, 8
mov rcx, rdi
call fcn.140002ef0
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140002f00
nop
mov rdx, rax
lea rcx, [0x140093578]
call fcn.1400068a0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140028165
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, 8
call fcn.140002eb0
test rax, rax
je 0x140028178
and qword [rax], 0
mov qword [0x140093a60], rax
mov rdx, rbx
call fcn.1400281a8
test eax, eax
jns 0x140028190
lfence
jmp 0x140028192
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x1400281a8
Capabilities:
Get file size
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [0x140093a60]
mov rsi, rdx
cmp qword [rdi], 0
je 0x1400281e6
mov eax, 0x80004005
jmp 0x1400282a3
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000080
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or r14, 0xffffffffffffffff
mov rbx, rax
cmp rax, r14
jne 0x140028234
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400282a3
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], 0
jle 0x140028259
mov eax, 0x80070057
jmp 0x1400282a3
mov ebx, dword [rsp + 0x40]
mov eax, 2
mul rbx
cmovo rax, r14
mov rcx, rax
call fcn.140026f10
mov r9, rsi
mov qword [rdi], rax
mov r8d, ebx
lea rcx, [0x14006f5c0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x14002829e
lea ecx, [rbx - 1]
cmp eax, ecx
sbb eax, eax
not eax
and eax, 0x8007000d
jmp 0x1400282a3
mov eax, 0x8007000d
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x140028bec
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp dword [0x140093728], ebx
jne 0x140028c78
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x140093728], ecx
jne 0x140028c78
mov rdi, qword [0x140093718]
mov qword [0x140093740], rbx
mov qword [0x140093738], rbx
mov qword [0x140093730], rbx
jmp 0x140028c60
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rdi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x140028c67
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140028c40
jmp 0x140028c6e
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov dword [0x14009372c], ebx
mov eax, ebx
jmp 0x140028c7d
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140028e80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, r9
mov r15, rdx
mov r14, qword [rbp + 0x68]
xor edi, edi
mov qword [rbp - 0x10], rdi
lea rdx, [rbp - 0x10]
call fcn.1400084f0
mov ebx, eax
test eax, eax
js 0x140028fb8
mov rcx, qword [rbp - 0x10]
call fcn.14000dae0
mov rsi, rax
test rax, rax
jne 0x140028edc
lea ebx, [rdi + 1]
jmp 0x140028fb8
mov dword [rbp - 0x20], edi
mov dword [rbp - 0x1c], 0x200
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.Assembly
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 1
test eax, eax
jne 0x140028faf
cmp dword [rbp - 0x20], ebx
jne 0x140028faf
mov dword [rbp - 0x1c], 0x200
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.Class
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140028faf
cmp dword [rbp - 0x20], ebx
jne 0x140028faf
mov dword [rbp - 0x18], edi
mov dword [rbp - 0x1c], 4
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.InitializeNewDomainFlags
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140028fa6
cmp dword [rbp - 0x20], 4
jne 0x140028fa6
mov eax, dword [rbp - 0x18]
mov dword [r14], eax
jmp 0x140028fba
mov dword [r14], 2
jmp 0x140028fba
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001020
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14002d220
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebp, ebp
mov dil, dl
mov rbx, rcx
test rcx, rcx
jne 0x14002d257
xor al, al
jmp 0x14002d2f0
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.14002d320
test eax, eax
jne 0x14002d2ed
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002d2ed
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14002d2b8
cmp esi, 0xea
jne 0x14002d2ed
cmp dword [rsp + 0x38], ebp
je 0x14002d2ed
mov r8, qword [str.Disable]
lea r9, [rsp + 0x3c]
mov rdx, rbx
mov dword [rsp + 0x3c], ebp
mov rcx, 0xffffffff80000002
call fcn.140024b80
mov ecx, dword [rsp + 0x3c]
test eax, eax
cmovne ecx, ebp
test ecx, ecx
sete al
jmp 0x14002d2f0
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14002d8d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, r8
mov rdi, rdx
mov r15, rcx
test r8, r8
jne 0x14002d907
mov eax, 0x80004003
jmp 0x14002d9d6
test rdi, rdi
je 0x14002d9d1
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x14002d9d1
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
test eax, eax
js 0x14002d9bd
and dword [rsp + 0x30], 0
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rbx]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
lea r9, [rsp + 0x30]
mov r8d, edi
mov rcx, rbx
call qword [rsi + 0x20]
mov ebx, eax
test eax, eax
js 0x14002d9bd
and dword [rsp + 0x20], 0
and dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov ebx, eax
test eax, eax
js 0x14002d9bd
mov rcx, qword [rsp + 0x28]
mov qword [r14], rcx
test rcx, rcx
je 0x14002d9b9
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x28]
xor ebx, ebx
jmp 0x14002d9c2
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14002d9cd
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
jmp 0x14002d9d6
mov eax, 0x80070057
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002dea0
Capabilities:
Get system information on windows
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, r9
mov rbx, rcx
mov qword [rsp + 0x70], r9
mov rdx, qword [rbp + 0xe0]
mov r14b, byte [rbp + 0x108]
mov esi, dword [0x140092e18]
cmp qword [0x140092f88], 0
je 0x14002defe
mov rcx, qword [r9 + 0x38]
jmp 0x14002e086
cmp qword [rcx + 0x80], 0
je 0x14002df0a
jmp 0x14002def5
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.140002f00
mov r15, rax
and qword [rbp - 0x40], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14002df50
mov r8, qword [rcx]
lea rdx, [rbp - 0x78]
call qword [r8]
mov qword [rbp - 0x40], rax
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14002e0c5
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.140002fb0
mov byte [rsp + 0x40], r14b
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0xe8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x78]
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.14002d5b0
lea rcx, [rbx + 8]
lea rdx, [rbp]
call fcn.14002d6d0
test esi, esi
jne 0x14002e016
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x18], 1
jbe 0x14002e016
mov rcx, rbx
call fcn.14002e244
mov rbx, rax
test rax, rax
je 0x14002e016
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp]
call fcn.14002e0d0
jmp 0x14002e082
lea rdx, [rbp]
call fcn.14002eee0
test al, al
je 0x14002e05a
lea rdx, [rbp]
lea rcx, [rsp + 0x78]
call fcn.14002e140
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x60], xmm0
cmp qword [0x140092f88], 0
je 0x14002e055
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.14002ece0
test al, al
jne 0x14002e05a
call fcn.140007be0
test esi, esi
je 0x14002e078
xor r9d, r9d
lea r8, str.Splash_Screen
lea rdx, str.Click_OK_to_continue
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rbp]
call fcn.14002e0d0
nop
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14002e09f
cmp rcx, rdi
sete dl
mov rax, qword [rcx]
xor dl, 1
call qword [rax + 0x20]
and qword [rdi + 0x38], 0
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x190
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x14002e244
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rcx
xor r9d, r9d
xor r8d, r8d
lea ebx, [r9 + 1]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002e3c1
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14002e3b8
lea ecx, [rbx + 0x17]
call fcn.140002eb0
mov rbx, rax
test rax, rax
je 0x14002e2ca
and qword [rax + 8], 0
and qword [rax + 0x10], 0
jmp 0x14002e2cc
xor ebx, ebx
mov qword [rbx], r14
mov rcx, rsi
call fcn.14002e3d0
mov qword [rbx + 8], rax
mov rcx, rdi
call fcn.14002e3d0
mov qword [rbx + 0x10], rax
cmp qword [rbx + 8], 0
je 0x14002e339
test rax, rax
je 0x14002e339
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x14000b000]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14002e339
mov rax, rsi
xor esi, esi
mov qword [r14 + 0x80], rax
mov rax, rdi
xor edi, edi
mov qword [r14 + 0x88], rax
xor ebx, ebx
jmp 0x14002e33b
xor ebp, ebp
test rbx, rbx
je 0x14002e376
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002e354
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x10], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002e368
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 8], 0
mov edx, DispGetParam
mov rcx, rbx
call fcn.140002ef0
nop
test rdi, rdi
je 0x14002e385
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rsi, rsi
je 0x14002e393
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140038c74
nop
jmp 0x14002e3c0
nop
call fcn.140038c74
int3

Function at 0x14002f450
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x1400341d2
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x1400341ac
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400341cb
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400341cb
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x1400341bb
cmp dword [rdi + 8], 0
je 0x1400341cb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x1400341bb
cmp byte [0x140095088], 0
jne 0x14003421d
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034209
lea rdx, [0x14006cbc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140095080], rax
jmp 0x140034210
mov r10, qword [0x140095080]
mov eax, 1
mov byte [0x140095088], al
jmp 0x140034224
mov r10, qword [0x140095080]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x1400341b5
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x1400341bb
Function at 0x140034e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140034ed4
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140034ed4
call fcn.1400331bc
mov ebx, eax
jmp 0x140034fe5
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140034ef5
call fcn.1400331bc
jmp 0x140034fd4
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140034eeb
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140034f30
mov ebx, 0x8007000e
jmp 0x140034fd6
mov ecx, eax
test eax, eax
je 0x140034f65
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140035021
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140034f65
lfence
lea rcx, [rsp + 0x60]
call fcn.140033190
jmp 0x140034f6f
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140034f81
cmp qword [rsp + 0x60], rdi
je 0x140034f26
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140034eeb
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140034ca4
mov ebx, eax
test rsi, rsi
je 0x140034fe5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140035000
lea rcx, [rsp + 0x60]
call fcn.14003316c
nop
nop dword [rax]
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140001020
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.1400327c0
int3
Function at 0x140035f74
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rcx
mov rsi, r8
mov rcx, qword [rcx]
mov ebp, edx
test rcx, rcx
jne 0x140035fa8
mov eax, 0x8000ffff
jmp 0x14003606a
test rsi, rsi
jne 0x140035fb7
mov eax, 0x80004003
jmp 0x14003606a
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
and qword [rsp + 0x50], 0
xor r9d, r9d
and qword [rsp + 0x48], 0
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test eax, eax
jne 0x14003605d
mov edx, dword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
test rax, rax
jne 0x14003601a
mov eax, 0x8007000e
jmp 0x14003606a
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov edx, ebp
mov rcx, qword [r14]
and qword [rsp + 0x20], 0
inc dword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
jne 0x140036054
mov qword [rsi], rbx
jmp 0x14003605d
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001020
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret