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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002af0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400130e4]
mov rbx, rcx
test esi, esi
jle 0x140002c20
mov rax, qword [0x1400130e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002b3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002bc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002b20
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002c42
mov rax, qword [0x1400130e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400130e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002c27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002bbe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002bd0
add dword [0x1400130e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400130e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002bbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002b48
mov rax, qword [0x1400130e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400031e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140013140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140013120]
test rbx, rbx
je 0x140003244
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000323b
test eax, eax
jne 0x14000323b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003220
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003480
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003498
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400034a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400034b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400034fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400034f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400034ff
add rax, 0x28
cmp rax, r9
jne 0x1400034e0
xor eax, eax
ret

Function at 0x140003500
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003590
mov rdx, qword [0x14000f890]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000357e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000357e
cmp word [rax + 0x18], 0x20b
jne 0x14000357e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003590
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003569
add rbx, 0x28
cmp rbx, rdi
je 0x140003590
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003560
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400035a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000f890]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400035c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400035c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400035c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000361d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003614
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400035c0
add rax, 0x28
cmp rax, r9
jne 0x140003600
xor eax, eax
ret

Function at 0x140003620
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f890]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000363f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003648
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000363f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140003660
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000f890]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003680
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003688
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003680
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400036d8
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400036cf
test rcx, rcx
je 0x140003680
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400036c0
xor eax, eax
ret

Function at 0x1400036e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f890]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400036ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003708
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140003720
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000f890]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003740
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003748
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003740
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140003740
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140003794
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400037a0
add rdx, 0x28
cmp r9, rdx
jne 0x140003780
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400037b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000f890]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400037d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400037e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400037d2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400037d2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140003835
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003848
add rdx, 0x28
cmp r10, rdx
jne 0x140003820
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003857
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003867
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000383e
test ecx, ecx
jg 0x140003850
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140061c20
Capabilities:
Access peb ldr_data
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov r8, qword [rax + 0x20]
movzx eax, word [r8]
cmp eax, 0x5a4d
jne 0x140061d3d
movsxd rax, dword [r8 + 0x3c]
cmp dword [r8 + rax], 0x4550
jne 0x140061d6c
mov edx, ecx
mov eax, dword [r8 + rax + 0x88]
mov ecx, dword [r8 + rax]
movups xmm0, xmmword [r8 + rax + 4]
mov r9, qword [r8 + rax + 0x14]
mov dword [rbp - 0x48], ecx
movups xmmword [rbp - 0x44], xmm0
mov qword [rbp - 0x34], r9
mov rcx, qword [r8 + rax + 0x1c]
mov qword [rbp - 0x2c], rcx
mov eax, dword [r8 + rax + 0x24]
mov dword [rbp - 0x24], eax
lea rcx, [rbp - 0x20]
lea r9, [rbp - 0x48]
call fcn.140061e60
cmp qword [rbp - 0x20], 0
jne 0x140061d9b
movzx eax, word [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
lea rdx, [rcx + 1]
xor r8d, r8d
jmp 0x140061ce1
add r8, 0xfffffffffffffffe
add rdx, 2
cmp r8, 0xffffffffffffff02
je 0x140061d15
cmp byte [rdx], 0xf
jne 0x140061cf2
cmp byte [rdx + 1], 5
jne 0x140061cf2
cmp byte [rdx + 2], 0xc3
je 0x140061d0e
cmp byte [rdx + 1], 0xf
jne 0x140061cd0
cmp byte [rdx + 2], 5
jne 0x140061cd0
cmp byte [rdx + 3], 0xc3
jne 0x140061cd0
sub rcx, r8
add rcx, 2
mov rdx, rcx
add rsp, 0x78
pop rsi
pop rbp
ret
lea rax, [0x1401231c8]
mov qword [rsp + 0x20], rax
lea rcx, str.____Error_retrieving_syscall_address
lea r9, [0x1401230f8]
lea r8, [rbp - 1]
mov edx, 0x24
call fcn.14007f150
movzx eax, byte [0x14013c181]
mov esi, 0x19
mov ecx, 0x19
mov edx, 1
call fcn.14000ce80
test rax, rax
jne 0x140061dc3
mov ecx, 1
mov edx, 0x19
call fcn.14007ec40
movzx eax, byte [0x14013c181]
mov esi, 0x18
mov ecx, 0x18
mov edx, 1
call fcn.14000ce80
test rax, rax
jne 0x140061dda
mov ecx, 1
mov edx, 0x18
call fcn.14007ec40
lea rax, [0x140123188]
mov qword [rsp + 0x20], rax
lea rcx, str.____Error_getting_syscall_number_1
lea r9, [0x1401230f8]
lea r8, [rbp - 1]
mov edx, 0x20
call fcn.14007f150
movups xmm0, xmmword [0x140123201]
movups xmmword [rax + 9], xmm0
movups xmm0, xmmword [0x1401231f8]
movups xmmword [rax], xmm0
jmp 0x140061df2
movups xmm0, xmmword [str.____INVALID_NT_SIGNATURE____INVALID_DOS_SIGNATURE]
movups xmmword [rax], xmm0
movabs rcx, 0x45525554414e4749
mov qword [rax + 0x10], rcx
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
lea rax, [0x140123150]
mov qword [rsp + 0x20], rax
lea rcx, str.____Error_exporting_DLLsyscall_src_syscall_resolve.rs
lea r9, [0x1401230d8]
lea r8, [rbp - 0x20]
mov edx, 0x17
call fcn.14007f150
ud2
Function at 0x14006d250
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140124ec0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14006d288
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14006d2e6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14006d313
test eax, eax
js 0x14006d2f2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14006d309
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140068560
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140063940
mov ecx, 7
int 0x29
ud2
Function at 0x1400031ac
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xe0
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140052a10]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r13, rcx
mov r12, qword [rbp + 0x7f]
mov dword [rcx + 0x440], 1
mov rcx, qword [rcx + 0x458]
mov ebx, 3
test rcx, rcx
je 0x14000326f
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x220]
mov rcx, qword [r13 + 0x458]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x188]
mov rcx, qword [r13 + 0x458]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x158]
mov word [rbp - 0x49], bx
mov dword [rbp - 0x41], 0xe
mov word [rbp - 0x61], bx
mov dword [rbp - 0x59], ebx
mov rcx, qword [r13 + 0x458]
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
call qword [rax + 0x68]
nop
lea rcx, [rbp - 0x61]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rbp - 0x49]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
lea rdx, [rbp + 0xf]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, 0x20
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r15d, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
lea ecx, [rbx - 0x1e]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r14d, eax
lea ecx, [rbx - 0x1d]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov dword [rbp - 0x31], 0x3c
lea rdx, [rbp - 0x31]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowInfo]
mov ecx, dword [r13 + 0x480]
mov edx, dword [r13 + 0x47c]
mov r9d, dword [rbp - 0x11]
sub r9d, ecx
sub r9d, ebx
sub r9d, esi
mov r8d, dword [rbp - 0x15]
sub r8d, edx
sub r8d, r14d
sub r8d, r15d
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
or rdx, 0xffffffffffffffff
mov rcx, qword [r13 + 8]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [r13 + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
cmp qword [r13 + 0x488], 0
jne 0x14000332c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, r13
lea r8, [0x14000317c]
xor edx, edx
xor ecx, ecx
call fcn.1400228fc
mov qword [r13 + 0x488], rax
mov dword [r12], 1
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140021770
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000c0cc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140052a10]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140055f20]
mov rax, qword [0x140055f28]
mov ebx, 1
jmp 0x14000c17d
test ebx, ebx
js 0x14000c29b
mov rsi, qword [rdi]
test rsi, rsi
je 0x14000c179
mov r9, qword [rsi + 0x10]
and qword [rsp + 0x30], 0
test r9, r9
jne 0x14000c122
xor ebx, ebx
jmp 0x14000c179
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x30]
lea rdx, [0x140047238]
call r9
mov ebx, eax
test eax, eax
js 0x14000c162
mov rax, qword [rsi + 0x20]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsi]
mov r9d, 5
add rax, 8
lea r8d, [r9 - 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000c172
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x140055f28]
add rdi, 8
cmp rdi, rax
jb 0x14000c0ff
test ebx, ebx
js 0x14000c29b
jne 0x14000c294
cmp byte [0x140055e10], 0
je 0x14000c241
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140055e00], rax
test rax, rax
je 0x14000c23a
lea rax, [rsp + 0x30]
lea r9, [0x140055db0]
lea r8, [0x14000dd78]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14000c200
mov rcx, qword [0x140055e00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x140055e00], rdi
test rdi, rdi
je 0x14000c23a
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x14000c22f
mov rcx, qword [0x140055e00]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x140055e08]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c249
mov ebx, 0x80004005
jmp 0x14000c24d
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x14000c29b
mov rdi, qword [0x140055f20]
mov rcx, qword [0x140055f28]
xor eax, eax
jmp 0x14000c28d
test eax, eax
jne 0x14000c29b
mov rdx, qword [rdi]
test rdx, rdx
je 0x14000c289
mov rax, qword [rdx + 0x20]
mov edx, dword [rax + 8]
test edx, edx
jne 0x14000c27a
xor eax, eax
jmp 0x14000c289
mov ecx, edx
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x140055f28]
add rdi, 8
cmp rdi, rcx
jb 0x14000c25f
jmp 0x14000c29b
mov byte [0x140055e10], 0
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140021770
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000d3d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140052a10]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x14000d52b
cmp byte [rcx + 0x81], bl
je 0x14000d52b
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14000d431
xor al, al
jmp 0x14000d530
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14000d918
nop
mov esi, 1
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x14000d49b
dec ecx
jne 0x14000d507
jmp 0x14000d4a1
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x30]
mov r9, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp - 0x38]
sub r14, rax
je 0x14000d4e1
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call fcn.1400237b0
cmp r14, rax
jne 0x14000d511
cmp byte [rdi + 0x81], bl
je 0x14000d50e
test r14, r14
jne 0x14000d456
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.14000c92c
jmp 0x14000d456
cmp ecx, 2
jne 0x14000d517
jmp 0x14000d514
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x14000d527
mov rcx, qword [rbp - 0x30]
call fcn.140021758
mov al, bl
jmp 0x14000d530
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140021770
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140019198
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140052a10]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor eax, eax
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rax
call fcn.1400190a8
jmp 0x140019211
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140019198
mov ebx, eax
test eax, eax
jne 0x14001927b
mov rcx, qword [rsp + 0x40]
xor ebx, ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x58], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140019202
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001926a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebx
call fcn.1400192b0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001928b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140021770
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400192b0
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 0x140019342
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14001931c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001933b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001933b
mov rdx, qword [rdi]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x14001932b
cmp dword [rdi + 8], 0
je 0x14001933b
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 0x14001932b
cmp byte [0x140055e98], 0
jne 0x14001938d
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019379
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140055e90], rax
jmp 0x140019380
mov r10, qword [0x140055e90]
mov eax, 1
mov byte [0x140055e98], al
jmp 0x140019394
mov r10, qword [0x140055e90]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x140019325
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x14001932b