joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ded7f40
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6ded7f50
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6ded7f60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6ded7fa1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6ded7f98
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6ded7fa3
add rax, 0x28
cmp rax, r9
jne 0x6ded7f84
xor eax, eax
ret

Function at 0x6ded8040
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6def51f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6ded80ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6ded80ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6ded80ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6ded80a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6ded80af
add rax, 0x28
cmp rax, r9
jne 0x6ded8090
xor eax, eax
add rsp, 0x28
ret

Function at 0x6ded81b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6def51f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6ded81d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6ded81c8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6ded822d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6ded8224
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6ded8234
add rax, 0x28
cmp rax, r9
jne 0x6ded8210
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6ded8250
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6def51f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6ded82be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6ded82be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6ded82be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6ded82be
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6ded82b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6ded82c5
add rcx, 0x28
cmp rcx, rax
jne 0x6ded82a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6ded82d8
jmp 0x6ded82be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6ded82e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6ded82be
test r9d, r9d
jg 0x6ded82d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6ded8650
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400b570c
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140204430
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x140295bb8]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x1402b041b]
call fcn.1400b72fa
mov qword [rbp + 8], 0
mov edx, dword [rbp + 0x448]
mov ecx, 0x18
call fcn.1400b57d4
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x1402044f0
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400b43a2
test eax, eax
je 0x1402044f0
mov rdx, qword [rbp + 0x450]
lea rcx, [rbp + 0x80]
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x1402044df
mov rax, qword [rbp + 0x68]
mov qword [rbp + 8], rax
jmp 0x1402044f0
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400b4e83
test eax, eax
jne 0x1402044bd
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140274240]
call fcn.1400b6a76
mov rax, rdi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400b585b
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret

Function at 0x1400b5bfd
Capabilities:
Terminate process

Disassembly:
jmp 0x14021ad40
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400b6378
Capabilities:
Parse pe header

Disassembly:
jmp 0x14021e0c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14021e0e0
xor al, al
jmp 0x14021e161
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14021e0f3
xor al, al
jmp 0x14021e161
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14021e11d
xor al, al
jmp 0x14021e161
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14021e131
xor al, al
jmp 0x14021e161
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14021e143
xor al, al
jmp 0x14021e161
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14021e15f
xor al, al
jmp 0x14021e161
mov al, 1
add rsp, 0x38
ret
Function at 0x1400b6eae
Capabilities:
Create thread
Terminate process

Disassembly:
jmp 0x1402086b0
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1402b0420]
call fcn.1400b72fa
lea rcx, [0x14029e188]
call fcn.1400b6d1e
mov rcx, rax
call fcn.1400b609e
movzx eax, al
test eax, eax
je 0x140208701
lea rcx, [0x14029e188]
call fcn.1400b6d1e
mov rcx, rax
call fcn.1400b6756
movzx eax, al
test eax, eax
jne 0x140208709
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b53d8]
call qword [sym.imp.ucrtbased.dll__beginthread]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b4e3d]
call qword [sym.imp.ucrtbased.dll__beginthread]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b614d]
call qword [sym.imp.ucrtbased.dll__beginthread]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b5c8e]
call qword [sym.imp.ucrtbased.dll__beginthread]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b5cf7]
call qword [sym.imp.ucrtbased.dll__beginthread]
lea rdx, [rbp + 0x128]
lea rcx, [rbp + 0x104]
call fcn.1401fbae0
mov rcx, rax
call fcn.1400b7b06
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x1402088cd
lea rcx, [0x14029e188]
call fcn.1400b6d1e
mov qword [rbp + 0x148], rax
lea rcx, [0x14029e188]
call fcn.1400b6d1e
mov rax, qword [rax + 0x29]
add rax, 0x367eb68
mov qword [rbp + 0x150], rax
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x148]
call fcn.1400b4b09
movabs rcx, 0x74e5bc8a4caa99e6
xor rax, rcx
mov qword [rbp + 8], rax
lea rcx, [0x14029e188]
call fcn.1400b6d1e
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 8]
add rax, 0x5a0
mov rdx, rax
mov rcx, qword [rbp + 0x148]
call fcn.1400b4b09
mov qword [rbp + 8], rax
lea rcx, [0x14029e188]
call fcn.1400b6d1e
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 8]
add rax, 0x118
mov rdx, rax
mov rcx, qword [rbp + 0x148]
call fcn.1400b4b09
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
add rax, 0x130
mov qword [0x14029e2f0], rax
lea rcx, [0x14029e188]
call fcn.1400b6d1e
mov qword [rbp + 0x148], rax
lea rcx, [0x14029e188]
call fcn.1400b6d1e
mov rax, qword [rax + 0x29]
add rax, 0x3d256e8
mov qword [rbp + 0x150], rax
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x148]
call fcn.1400b4b09
add rax, 0x7e0
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [0x14029e2e0], rax
mov rax, qword [0x14029e2e0]
mov qword [0x14029e2f0], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140208763
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140001070
Capabilities:
Create thread
Encode data using xor
Get memory capacity
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov ecx, 0x3b9aca00
mov dword [rsp + 0x30], 0
mov rdi, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.WINMM.dll_timeGetTime]
test rbx, rbx
je 0x140001228
mov rcx, qword [rdi]
lea rdx, str.AVtest.exe
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x1400010f3
lea rcx, str.Whats_my_name__WTF___:__n
call fcn.140001010
mov eax, 0xfffffffe
jmp 0x14000122a
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140001113
lea rcx, str.attached_debugger_detected_:__n
call fcn.140001010
mov eax, 0xfffffffe
jmp 0x14000122a
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0xa0], 2
jb 0x14000124b
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x48]
shr rax, 0x1e
cmp eax, 2
jb 0x14000124b
xor edx, edx
mov r8d, 0x3b9aca00
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ecx, ecx
mov edx, 0x1cc
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
lea r8, [0x140004060]
xor r10d, r10d
lea r11, str.mysuperdupersecretkey
mov rbx, rax
nop dword [rax + rax]
xor ecx, ecx
lea r8, [r8 + 1]
cmp r10, 0x15
cmovne rcx, r10
inc r9d
movzx eax, byte [rcx + r11]
lea r10, [rcx + 1]
xor byte [r8 - 1], al
cmp r9d, 0x1cc
jb 0x1400011a0
mov r8d, 0x1cc
lea rdx, [0x140004060]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x1cc
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001228
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001270
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
lea rcx, str.possibly_launched_in_sandbox_:__n
call fcn.140001010
mov eax, 0xfffffffe
jmp 0x14000122a

Function at 0x140001b44
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
and dword [rdx + 0x1eb1f5df], ebp
invalid
in eax, dx
mov esi, 0xc7bf74d0
jbe 0x140023317
invalid
mov ebx, 0xa974f7db
div dword [rcx + rsi*4 - 0x14]
mov gs, word ss:[rsi - 0x2b402d22]
jp 0x1400232b2
sbb eax, 0x3841c0b4
invalid
Function at 0x140003010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000303d
xor eax, eax
jmp 0x140003183
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003077
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003077
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003183
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003176
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400030ba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400030c9
movsx ecx, dil
jmp 0x14000311d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x140003176
cmp eax, 1
jle 0x140003137
cmp eax, 3
jne 0x140003176
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000cffc
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000317b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003164
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14000dba4
cmp rsi, rax
jne 0x140003176
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000317b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400051b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004ac0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x870
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rsp + 0x860], rax
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x60]
call fcn.140008350
mov ecx, 0x20
call fcn.140005734
mov rdi, rax
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
lea r14, [rdi + 0x10]
xor ebp, ebp
mov qword [r14], rbp
lea rsi, [rdi + 0x18]
mov qword [rsi], rbp
mov qword [rdi], rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140004b5d
cmp eax, 0x80010106
jne 0x140004c2a
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov qword [rsp + 0x20], rsi
lea r9, [0x140026678]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140026668]
call qword [sym.imp.ole32.dll_CoCreateInstance]
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140004cab
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
lea r9, [rsp + 0x60]
mov rcx, rdi
call fcn.140004cc0
mov rcx, qword [r14]
test rcx, rcx
je 0x140004c45
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140004c53
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140004c61
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, [rsp + 0x60]
lea rcx, str.OperatingSystem_Name:__ls__n
call fcn.1400012c0
mov eax, 1
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400051b0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov ecx, 0x8007000e
call fcn.140004a80
int3

Function at 0x14000cfd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ce04
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
movabs rdi, 0x9f6aba939c77fe30
pop rsi
je 0x14001ad3e
xchg edi, eax
and cl, bh
invalid
retf
Function at 0x1400017e4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rbp + 0x40], rax
movdqa xmm0, xmmword [0x140044eb0]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140044f20]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [0x140044ef0]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x140044fe0]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [0x140044d90]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140045020]
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmm0, xmmword [0x140044db0]
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x140044f10]
movdqa xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmmword [0x140044f00]
movdqa xmmword [rbp], xmm0
movdqa xmm1, xmmword [0x140045030]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x140044e50]
movdqa xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], 0x3f
mov r8d, 0x2d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140005870
nop
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x14000192f
cmp qword [rsp + 0x30], rbx
je 0x14000192f
lea r8d, [rbx + 0x1e]
lea rdx, [0x14004bcb0]
lea rcx, [rsp + 0x38]
call fcn.140005870
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
setne bl
lea rcx, [rsp + 0x38]
call fcn.1400025b8
jmp 0x140001934
mov ebx, 1
lea rcx, [rsp + 0x58]
call fcn.1400025b8
mov eax, ebx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140010040
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rbp
ret

Function at 0x140001960
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x1400019de
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14000199e
mov rdx, qword [rdi]
mov r8d, 0x10000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
je 0x1400019ce
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
mov rcx, rbp
sete bl
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400019d3
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400019e3
mov ebx, 1
mov rcx, rdi
call fcn.1400025b8
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140001aec
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, rdi
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x140001b46
mov edx, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
jmp 0x140001b4b
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret