joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140717058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407171df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140717089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071706f
add dl, dl
jne 0x140717096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407170f6
xor eax, eax
add dl, dl
jne 0x1407170a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407171ad
add dl, dl
jne 0x1407170b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407170c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407170d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407170dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407170ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14071707e
mov eax, 1
add dl, dl
jne 0x140717106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140717113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407170fb
sub eax, ebx
mov ebx, 1
jne 0x14071714c
mov ecx, 1
add dl, dl
jne 0x14071712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14071713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140717123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140717168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140717175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071715d
cmp eax, 0x7d00
jae 0x14071719b
cmp eax, 0x500
jb 0x140717196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071707e
cmp eax, 0x7f
ja 0x14071719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407171d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14071707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000712b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14009dfb8]
jne 0x1400040aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400040a6
repz ret
ror rcx, 0x10
jmp 0x140007084
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14009fb30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14009fc28]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140007109
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14009fb30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000712b
mov rax, qword [rsp + 0x88]
mov qword [0x14009fc28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14009fbc8], rax
mov rax, qword [0x14009fc28]
mov qword [0x14009faa0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14009fbb0], rax
mov dword [0x14009fa90], 0xc0000409
mov dword [0x14009fa94], 1
mov rax, qword [0x14009dfb8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14009dfc0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14009fb28], eax
mov ecx, 1
call fcn.140007388
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000ea60]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14009fb28], 0
jne 0x1400071b2
mov ecx, 1
call fcn.140007388
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140008418
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14000a510
nop
cmp dword [0x1400a00b0], 1
je 0x1400083c4
mov dword [0x1400a00ac], 1
mov byte [0x1400a00a8], r12b
test ebx, ebx
jne 0x1400083b0
mov rcx, qword [0x1400a1b50]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000839d
mov rcx, qword [0x1400a1b48]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14000833c
call fcn.1400056d4
cmp qword [rdi], rax
jne 0x14000833c
jmp 0x140008322
cmp rdi, rsi
jb 0x14000839d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400056d4
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400a1b50]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400a1b48]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14000837b
cmp r13, rax
je 0x14000839b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140008322
lea rdx, [0x14000e2b8]
lea rcx, [0x14000e2a0]
call fcn.14000816c
lea rdx, [0x14000e2c8]
lea rcx, [0x14000e2c0]
call fcn.14000816c
nop
test r12d, r12d
je 0x1400083d3
mov ecx, 8
call fcn.14000a410
test r12d, r12d
jne 0x1400083fe
mov dword [0x1400a00b0], 1
lea ecx, [r12 + 8]
call fcn.14000a410
mov ecx, r15d
call fcn.140008100
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000828c

Function at 0x140008424
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14000828c
Function at 0x14000bb04
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400056d4
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400a0808], rbx
jne 0x14000bc0a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000bcdf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bcdf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400a0808], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400a0810], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400a0818], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1400a0828], rax
test rax, rax
je 0x14000bc01
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400a0820], rax
jmp 0x14000bc11
mov rax, qword [0x1400a0820]
jmp 0x14000bc18
mov rax, qword [0x1400a0820]
mov r11, qword [0x1400a0828]
cmp rax, rdi
je 0x14000bc80
cmp r11, rdi
je 0x14000bc80
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400a0828]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000bc80
test rax, rax
je 0x14000bc80
call rsi
test rax, rax
je 0x14000bc7a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000bc7a
test byte [rsp + 0x38], 1
jne 0x14000bc80
bts ebp, 0x15
jmp 0x14000bcbe
mov rcx, qword [0x1400a0810]
cmp rcx, rdi
je 0x14000bcbe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000bcbe
call rax
mov rbx, rax
test rax, rax
je 0x14000bcbe
mov rcx, qword [0x1400a0818]
cmp rcx, rdi
je 0x14000bcbe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000bcbe
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400a0808]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000bcdf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000bce1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001000
Capabilities:
Download url
Receive data

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x90], rax
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
mov qword [rsp + 0x38], 0
pause
pause
pause
mov rsi, r8
mov rdi, rdx
mov rdx, rcx
nop
nop
nop
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
xor ecx, ecx
xor r9d, r9d
call sub.urlmon.dll_URLOpenBlockingStreamA
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
test eax, eax
js 0x140001173
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov r8d, 1
call qword [rax + 0x60]
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
test eax, eax
js 0x140001193
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
mov eax, dword [rsp + 0x50]
mov dword [rsi], eax
pause
pause
pause
nop
nop
nop
mov ecx, dword [rsi]
call fcn.140002cc4
mov qword [rdi], rax
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsi]
mov rdx, qword [rdi]
mov rax, qword [rcx]
lea r9, [rsp + 0x34]
call qword [rax + 0x18]
pause
pause
pause
nop
nop
nop
test eax, eax
js 0x140001183
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsi]
jne 0x140001183
pause
pause
pause
nop
nop
nop
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
pause
pause
pause
nop
nop
nop
mov sil, 1
jmp 0x1400011d1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400044aa]
jmp 0x1400011a1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400044e6]
jmp 0x1400011a1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x14000446e]
call fcn.1400011f0
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
xor esi, esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140002cf0
mov eax, esi
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140003670
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400036ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400036ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400036ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400036ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1400036ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400036bc
xor al, al
add rsp, 0x28
ret
Function at 0x140131000
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
add byte [rdx - 0x75], al
or al, 0x18
test eax, esp
invalid
xchg ebx, eax
add dword [rax], eax
add dword [rdi], ecx
mov dh, 0x41
inc dword [rax + rax*8 - 0x1a7af1]
invalid
add byte [rax], r8b
imul eax, dword [rdx], 0x9f70000
cmp r15d, 0x787d195d
Function at 0x1400023c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400023ee
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140002f40
cmp byte [0x14002d3a8], 0
jne 0x140002439
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002429
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14002d3a8], 1
mov qword [0x14002d3a0], rax
jmp 0x140002440
mov rax, qword [0x14002d3a0]
mov byte [0x14002d3a8], 1
jmp 0x140002440
mov rax, qword [0x14002d3a0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000245f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140002fb4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140002fcf
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140002fcf
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x140002fcf
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov esp, 0x544af1da
invalid
Function at 0x140002ca0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14002b450]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor eax, eax
xor ebp, ebp
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], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.1400027c0
mov ebx, eax
test eax, eax
jne 0x140002dc7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140002da1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140002ca0
mov ebx, eax
test eax, eax
jne 0x140002dc7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140002d50
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140002db6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.1400023c0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140002dd7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000f770
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002f40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400023ee
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140002f40
cmp byte [0x14002d3a8], 0
jne 0x140002439
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002429
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14002d3a8], 1
mov qword [0x14002d3a0], rax
jmp 0x140002440
mov rax, qword [0x14002d3a0]
mov byte [0x14002d3a8], 1
jmp 0x140002440
mov rax, qword [0x14002d3a0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000245f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140002fb4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140002fcf
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140002fcf
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x140002fcf
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov esp, 0x544af1da
invalid
Function at 0x1400031d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14002b450]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.14000f7a0
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000327c
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000327c
call fcn.140001e60
mov ebx, eax
jmp 0x1400033a4
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000329d
call fcn.140001e60
jmp 0x140003393
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400032c0
call fcn.140001e60
jmp 0x140003393
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400032e2
mov ebx, 0x8007000e
jmp 0x140003395
mov ecx, eax
test eax, eax
je 0x14000331a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140003310
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000331a
lea rcx, [rsp + 0x70]
call fcn.140001d40
jmp 0x140003324
mov ecx, 0x80070216
call fcn.140001fd0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140003337
cmp qword [rsp + 0x70], 0
jne 0x140003346
mov ebx, 0x8007000e
jmp 0x140003395
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140003370
call fcn.140001e60
jmp 0x140003393
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140002ff0
mov ebx, eax
test rdi, rdi
je 0x1400033a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400033bb
lea rcx, [rsp + 0x70]
call fcn.1400024b0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000f770
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003bf0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14002b450]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000f770
add rsp, 0x48
ret

Function at 0x140003c40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140003c58
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140003c64
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140003c60
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x14000bbb0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14002b450]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x14000bbf4
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000f770
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
lea r8, [0x14000b430]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14000bc35
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000f770
add rsp, 0x40
pop rbx
ret
Function at 0x14000bda0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp byte [0x14002d460], 0
mov esi, edx
mov rbx, rcx
je 0x14000bdc6
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
xor ecx, ecx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x14000be0c
cmp eax, 0x80010106
jne 0x14000be6c
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000be10
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov byte [rbx + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.14000b480
cmp al, 1
jne 0x14000be5c
mov edx, esi
mov rcx, rbx
call fcn.14000b8d0
mov edi, eax
test eax, eax
jne 0x14000be4e
mov rcx, rbx
call fcn.14000bb40
mov rcx, rbx
call fcn.14000b850
mov edi, eax
jmp 0x14000be60
js 0x14000be60
mov rcx, rbx
call fcn.14000b850
mov edi, eax
jmp 0x14000be60
mov edi, dword [rsp + 0x40]
cmp byte [rbx + 0x62], 0
je 0x14000be6c
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14002d4c0]
mov edx, r9d
jmp 0x14000bda0