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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, qword [0x1401b54c0]
xor edx, edx
mov esi, dword [0x1401b5514]
mov r9d, 0x1000
mov r8d, 0x1f4
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [0x1401b54c0]
lea r8, [0x1401b2b20]
xor edi, edi
mov dword [0x1401b5518], eax
cmp byte [0x1401b531a], 1
movsxd rdx, eax
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x3c]
je 0x14007d559
lea r8, [0x1401b2b70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, dword [0x1401b5518]
lea rax, [rsp + 0x38]
mov rcx, qword [0x1401b54c0]
mov r9d, 0x40
add ebx, 0x13
mov byte [rsp + 0x30], 0x50
mov edx, ebx
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x1401b54c0]
lea r8, [rsp + 0x30]
mov r9d, 1
mov qword [rsp + 0x20], rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x38]
mov r8d, 1
mov rcx, qword [0x1401b54c0]
mov edx, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [0x1401b5518]
mov r9d, 0x40
lea eax, [rcx + 0x5e]
lea ebx, [rcx + 9]
mov dword [rsp + 0x40], eax
mov rcx, qword [0x1401b54c0]
lea rax, [rsp + 0x48]
lea r8d, [r9 - 0x3c]
mov qword [rsp + 0x20], rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x1401b54c0]
lea r8, [rsp + 0x40]
mov r9d, 4
mov qword [rsp + 0x20], rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x48]
mov r8d, 4
mov rcx, qword [0x1401b54c0]
mov edx, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x1401b54c0]
lea eax, [rsi + 8]
movsxd rdx, eax
lea r8, [0x1401b5508]
mov r9d, 7
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movsxd rdx, dword [0x1401b5518]
lea r8, [0x1401b5508]
mov rcx, qword [0x1401b54c0]
mov r9d, 7
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007ffe0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14007f750
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
xor edx, edx
mov ebx, edi
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007f790
xor eax, eax
jmp 0x14007f7f1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14007f7e6
nop word [rax + rax]
lea rdx, str.aow_exe.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14007f7d4
mov eax, dword [rsp + 0x3c]
cmp eax, ebx
jbe 0x14007f7d4
mov edi, dword [rsp + 0x28]
mov ebx, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14007f7b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007ffe0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140080d14
Capabilities:
Parse pe header

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

Disassembly:
mov eax, dword [rdx + 8]
mov r10, qword [rdx]
xor r8d, r8d
add eax, eax
mov r9d, 0x1505
movsxd rdx, eax
test eax, eax
jle 0x140004cfc
movzx ecx, byte [r8 + r10]
imul r9d, r9d, 0x21
inc r8
add r9d, ecx
cmp r8, rdx
jl 0x140004ce8
mov eax, r9d
ret

Function at 0x14001b5fc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
cmp byte [rcx + 0x20], 0
mov r10, r9
mov r11, r8
mov rbx, rdx
jne 0x14004f3b8
mov r9, qword [rsp + 0x50]
mov r8, r10
mov rdx, r11
mov rcx, rbx
call fcn.14002b024
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
imul r10d, r11d
lea r9, [rsp + 0x30]
mov rax, qword [rcx]
mov r8d, r10d
call qword [rax + 0x18]
mov rax, qword [rsp + 0x30]
jmp 0x14001b62e
Function at 0x140025ed0
Capabilities:
Write file on windows

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, 0x40
mov r14b, byte [0x1400e44c7]
mov rsi, rdx
mov rdi, rcx
call fcn.140028bf8
mov edx, 0x8000
mov ecx, eax
call fcn.140028a20
cmp dword [rsi + 0x10], 0xb
mov ebp, eax
je 0x14006293e
lea rcx, [rsp + 0x20]
call fcn.14001c51c
mov rcx, rsi
call fcn.1400067e4
mov rdx, qword [rsi + 8]
lea r8, [rsp + 0x20]
call fcn.14001c400
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400ab540]
mov rcx, rdi
call fcn.140028e40
movsxd rbx, eax
test r14b, r14b
jne 0x14006296c
lea rcx, [rsp + 0x20]
call fcn.14001c29c
mov rcx, rdi
call fcn.14002903c
mov rcx, rdi
call fcn.140028bf8
mov edx, 0x4000
mov ecx, eax
cmp ebp, 0xffffffff
je 0x140025f7b
mov edx, ebp
call fcn.140028a20
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r14
ret
mov rcx, rsi
call fcn.1400794e0
mov rcx, rsi
movsxd rbx, eax
call fcn.140079458
mov r9, rdi
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140028db0
mov rbx, rax
jmp 0x140025f5d
mov rcx, rsi
call fcn.140006dd4
mov rcx, rax
call qword [0x1400aa480]
nop
jmp 0x140025f53
Function at 0x14006e960
Capabilities:
Encode data using xor

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 rcx, qword [r8]
mov rdi, rdx
mov rsi, r8
mov r14d, dword [rcx + rdx]
lea rax, [rcx + 4]
mov qword [r8], rax
lea eax, [r14 + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002652c
mov rdx, qword [rsi]
lea ecx, [r14 + r14]
movsxd rbx, ecx
add rdx, rdi
mov rcx, rax
mov r8, rbx
mov r15, rax
call fcn.1400265f0
add qword [rsi], rbx
xor eax, eax
movsxd rcx, r14d
mov word [r15 + rcx*2], ax
test r14d, r14d
jle 0x14006e9ef
mov rax, r15
mov ecx, r14d
xor word [rax], r14w
lea rax, [rax + 2]
dec rcx
jne 0x14006e9e2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rax, r15
add rsp, 0x20
pop r15
ret

Function at 0x140074b68
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov esi, r9d
mov rbp, r8
mov r14, rdx
mov r15, rcx
mov byte [0x1400e451f], dil
test ebx, ebx
je 0x140074bde
mov byte [0x1400e4520], 1
call qword [0x1400aa2f0]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x1400750a4]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.1400281c0
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r14
mov rcx, r15
call qword [0x1400aae08]
mov ebx, eax
test rdi, rdi
je 0x140074c13
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400e4520], 0
call qword [0x1400aa2c8]
mov rcx, rdi
call qword [0x1400aa418]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
or eax, 0xffffffff
cmp byte [0x1400e451f], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14007953c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [0x1400e1dc0]
jne 0x14007954d
call fcn.140079638
mov rax, qword [0x1400e7180]
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400e7180], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
add rsp, 0x28
ret

Function at 0x140079590
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [0x1400e1dc0]
jne 0x1400795a1
call fcn.140079638
mov rax, qword [0x1400e7180]
xorps xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400e7180], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400d1e88]
add rsp, 0x28
ret
Function at 0x1400795f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, 1
mov dword [0x1400e67c0], ecx
lea rdx, [0x1400e67c4]
mov ecx, r8d
mov eax, dword [rdx - 4]
shr eax, 0x1e
xor eax, dword [rdx - 4]
imul eax, eax, 0x6c078965
add eax, ecx
add ecx, r8d
mov dword [rdx], eax
lea rdx, [rdx + 4]
cmp ecx, 0x270
jl 0x140079606
mov dword [0x1400e1dc0], r8d
mov dword [0x1400e67a8], r8d
ret

Function at 0x140079638
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400e67a8], 0
lea rbx, [0x1400e67c0]
jne 0x14007965d
xor ecx, ecx
call fcn.14002abd4
mov rcx, rax
call fcn.1400795f0
mov dword [0x1400e1dc0], 0x270
mov qword [0x1400e7180], rbx
mov r9d, 0xe3
mov r10d, 0x9908b0df
mov r11d, 0x7ffffffe
mov edx, dword [rbx + 4]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx + 0x634]
xor edx, ecx
mov dword [rbx], edx
add rbx, 4
dec r9d
jne 0x140079680
mov r9d, 0x18c
lea r8, [rbx + 4]
mov edx, dword [r8]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx - 0x38c]
xor edx, ecx
mov dword [rbx], edx
lea rbx, [r8]
dec r9d
jne 0x1400796b0
mov ecx, dword [0x1400e67c0]
mov al, cl
and al, 1
neg al
mov eax, dword [r8]
sbb edx, edx
xor eax, ecx
and eax, r11d
and edx, r10d
xor eax, dword [r8]
shr eax, 1
xor eax, dword [r8 - 0x38c]
xor eax, edx
mov dword [r8], eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400855a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x420
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rdx, [0x1400d0748]
call fcn.14002ac34
mov rdi, rax
test rax, rax
jne 0x1400855dd
lea edx, [rax + 0x1f]
jmp 0x140085657
mov dword [rsp + 0x430], 1
lea r9, [rsp + 0x430]
lea rdx, [rsp + 0x20]
mov r8d, 0x400
mov rcx, rsi
call qword [0x1400aaf70]
test eax, eax
je 0x140085652
mov eax, dword [rsp + 0x430]
test eax, eax
je 0x140085637
lea rcx, [rsp + 0x20]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140028db0
mov ecx, dword [rsp + 0x430]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x1400855e8
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x140085648
mov edx, 0x21
jmp 0x14008565a
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x140085663
mov edx, 0x20
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.1400857d8
mov bl, al
test rdi, rdi
je 0x140085677
mov rcx, rdi
call fcn.14002ad9c
lea r11, [rsp + 0x420]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140085adc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [rcx + 0x188], bl
je 0x140085b42
test dl, dl
je 0x140085b42
mov rcx, qword [rcx + 0x190]
test rcx, rcx
je 0x140085b10
call qword [0x1400aa418]
mov qword [rdi + 0x190], rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [0x1400aa588]
lea rcx, [0x140085b90]
mov r8, rdi
xor edx, edx
mov qword [rdi + 0x190], rax
call fcn.14002b6b8
cmp dword [rdi + 0x20], ebx
sete al
jmp 0x140085b47
call fcn.1400847c0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14008ba1c
Capabilities:
Hash data with crc32

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
mov esi, dword [rsp + 0x30]
mov ebp, r9d
mov eax, r9d
shl eax, 2
mov edi, r8d
or r10d, 0xffffffff
imul ebp, dword [rsp + 0x30]
movsxd rbx, eax
shl ebp, 2
add rdi, rdx
add rbx, rdx
mov r11, rdx
mov r9, rdx
shl esi, 2
lea r14, [0x1400ccec0]
movzx eax, byte [r11 + 2]
movzx ecx, r10b
shr r10d, 8
xor rcx, rax
movzx eax, byte [r11 + 1]
mov edx, dword [r14 + rcx*4]
xor edx, r10d
movzx ecx, dl
shr edx, 8
xor rcx, rax
movzx eax, byte [r11]
add r11, rbp
mov r8d, dword [r14 + rcx*4]
xor r8d, edx
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
mov r10d, dword [r14 + rcx*4]
xor r10d, r8d
cmp r11, rdi
jb 0x14008bab8
mov eax, esi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x14008ba66
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x28]
not r10d
mov eax, r10d
cvtsi2sd xmm0, rax
pop r14
ret
Function at 0x1400f76e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1400f770d
xor al, al
jmp 0x1400f786f
mov rax, qword [0x1401186c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401186c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401186d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401186d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401186e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401186e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401186f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401186f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140118700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400f7861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1400f77b9
mov r11d, 2
jmp 0x1400f77dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1400f77d3
mov r11d, 1
jmp 0x1400f77dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400f7885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1400f7822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1400f783a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400f784a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400f7858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1400f77a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400f786a
Function at 0x14000dd30
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 0x14000dd5e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000f990
cmp byte [0x14003de30], 0
jne 0x14000dda9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000dd99
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14003de30], 1
mov qword [0x14003de28], rax
jmp 0x14000ddb0
mov rax, qword [0x14003de28]
mov byte [0x14003de30], 1
jmp 0x14000ddb0
mov rax, qword [0x14003de28]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000ddcf
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 0x14000fa04
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000fa1f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000fa1f
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.0x14000fa1f
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
hlt
Function at 0x14000f6f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400391b0]
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.14000eb20
mov ebx, eax
test eax, eax
jne 0x14000f817
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 0x14000f7f1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14000f6f0
mov ebx, eax
test eax, eax
jne 0x14000f817
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 0x14000f7a0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000f806
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.14000dd30
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000f827
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400175d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f990
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 0x14000dd5e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000f990
cmp byte [0x14003de30], 0
jne 0x14000dda9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000dd99
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14003de30], 1
mov qword [0x14003de28], rax
jmp 0x14000ddb0
mov rax, qword [0x14003de28]
mov byte [0x14003de30], 1
jmp 0x14000ddb0
mov rax, qword [0x14003de28]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000ddcf
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 0x14000fa04
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000fa1f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000fa1f
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.0x14000fa1f
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
hlt
Function at 0x14000fd80
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 [0x1400391b0]
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.140017600
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 0x14000fe2c
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 0x14000fe2c
call fcn.14000c740
mov ebx, eax
jmp 0x14000ff54
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000fe4d
call fcn.14000c740
jmp 0x14000ff43
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 0x14000fe70
call fcn.14000c740
jmp 0x14000ff43
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 0x14000fe92
mov ebx, 0x8007000e
jmp 0x14000ff45
mov ecx, eax
test eax, eax
je 0x14000feca
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000fec0
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000feca
lea rcx, [rsp + 0x70]
call fcn.14000c5b0
jmp 0x14000fed4
mov ecx, 0x80070216
call fcn.140002960
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000fee7
cmp qword [rsp + 0x70], 0
jne 0x14000fef6
mov ebx, 0x8007000e
jmp 0x14000ff45
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 0x14000ff20
call fcn.14000c740
jmp 0x14000ff43
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.14000faa0
mov ebx, eax
test rdi, rdi
je 0x14000ff54
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000ff6b
lea rcx, [rsp + 0x70]
call fcn.14000de20
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400175d0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret