joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013ff0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x6c]
call fcn.140195d30
mov dword [rbp - 0x70], 0x114
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlGetVersion]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
lea r8d, [rbx + 0xa]
lea rdx, str.Windows_NT
mov rcx, rdi
call fcn.140011c50
nop
lea rcx, [rdi + 0x20]
call fcn.140013970
nop
mov eax, dword [rbp - 0x6c]
mov dword [rdi + 0x40], eax
mov eax, dword [rbp - 0x68]
mov dword [rdi + 0x44], eax
mov eax, dword [rbp - 0x64]
mov dword [rdi + 0x48], eax
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400141d5
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401bf98c]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400140fe
mov ebx, dword [rsp + 0x68]
jmp 0x1400141d5
mov dword [rsp + 0x50], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BuildLabEx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400141d5
mov edx, dword [rsp + 0x50]
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.1400142b0
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BuildLabEx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea rcx, [rsp + 0x70]
test eax, eax
jne 0x1400141d0
mov qword [rsp + 0x60], rbx
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x60]
lea rdx, reloc.WLDAP32.dll_Ordinal_46
call fcn.14016a2c8
lea r8, [rsp + 0x60]
lea rdx, reloc.WLDAP32.dll_Ordinal_46
xor ecx, ecx
call fcn.14016a2c8
test rax, rax
je 0x1400141cb
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rax
call fcn.14016b2f8
mov ebx, eax
lea rcx, [rsp + 0x70]
call fcn.140010b40
mov dword [rdi + 0x4c], ebx
mov rax, rdi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14015a1f0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140015230
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140015252
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400152cc
mov rdi, r14
mov rcx, rbx
call fcn.1400164a0
test rax, rax
jle 0x1400152a4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140195690
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400152bc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x1400152c4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140015266
sub r14, rdi
jmp 0x1400153af
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400152e3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400152e5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140015317
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140195690
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400153ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140015352
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14001538d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1401704a0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400153ac
cmp rbp, rax
ja 0x140015360
test rbp, rbp
je 0x1400153ac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1401704a0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140017770
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x50]
call fcn.140195d30
lea rdx, [rbp - 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140017830
lea rcx, [rbp - 0x50]
mov r8, 0xffffffffffffffff
mov rax, r8
lea rax, [rax + 1]
cmp word [rcx + rax*2], si
jne 0x1400177e1
cmp word [rbp + rax*2 - 0x52], 0x5c
jne 0x14001780c
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x140017936
mov word [rbp + rax - 0x50], si
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
lea rax, [rbp - 0x50]
nop
inc r8
cmp word [rax + r8*2], si
jne 0x140017820
lea rdx, [rbp - 0x50]
jmp 0x140017849
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
xor r8d, r8d
lea rdx, [0x1401bfaf0]
lea rcx, [rbp - 0x70]
call fcn.140010eb0
nop
mov rdi, qword [rbp - 0x60]
test rdi, rdi
jne 0x14001787e
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x1401bfaf0]
mov rcx, rbx
call fcn.140010eb0
jmp 0x1400178fc
lea rcx, [rsp + 0x70]
call fcn.1400176c0
mov rsi, rax
movabs rcx, 0x7ffffffffffffffe
sub rcx, rdi
cmp rcx, 1
jb 0x140017930
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 1
lea rax, [0x1401bfaec]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x50]
call fcn.14001a820
nop
mov r9, rsi
lea r8, [rsp + 0x50]
mov rcx, rbx
call fcn.14001a600
nop
lea rcx, [rsp + 0x50]
call fcn.140010ac0
nop
lea rcx, [rsp + 0x70]
call fcn.140010ac0
nop
lea rcx, [rbp - 0x70]
call fcn.140010ac0
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14015a1f0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400108a0
nop
call fcn.14015a774
int3
Function at 0x1400197e0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r13
mov eax, 0x1070
call fcn.14015ae10
sub rsp, rax
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, qword [rsp + 0x10b0]
xor ebp, ebp
mov qword [rsp + 0x38], r9
mov r12, r8
mov qword [rsp + 0x30], rdx
mov r13, rcx
test r8, r8
jne 0x14001982c
mov rdx, rbp
jmp 0x140019940
mov r9d, 0x1000
lea rdx, [rsp + 0x40]
call fcn.140017f20
test al, al
je 0x140019824
mov qword [rsp + 0x1068], rsi
lea rdx, str.PAGE
mov qword [rsp + 0x1060], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1058], r14
mov qword [rsp + 0x1050], r15
nop
inc rdi
cmp byte [rdx + rdi], bpl
jne 0x140019870
movsxd rax, dword [rsp + 0x7c]
lea rcx, [rsp + 0x40]
add rcx, rax
mov qword [rsp + 0x1098], rbx
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r15, [rcx + 0x18]
movzx r14d, word [rcx + 6]
add r15, rax
test r14d, r14d
je 0x140019915
nop word [rax + rax]
mov eax, esi
mov r8, rdi
lea rcx, [rax + rax*4]
lea rbx, [r15 + rcx*8]
mov rcx, rbx
call fcn.1401960d0
test eax, eax
jne 0x1400198de
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x1400198d0
cmp rdi, rax
je 0x1400198ee
inc esi
cmp esi, r14d
jae 0x140019915
lea rdx, str.PAGE
jmp 0x1400198b0
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140019915
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
add rdx, rax
je 0x140019915
test ecx, ecx
je 0x140019915
lea rax, [rsp + 0x40]
mov ebp, ecx
sub rdx, rax
add rdx, r12
jmp 0x140019918
mov rdx, rbp
mov rbx, qword [rsp + 0x1098]
mov rdi, qword [rsp + 0x1060]
mov rsi, qword [rsp + 0x1068]
mov r14, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1050]
mov rax, qword [rsp + 0x30]
mov rcx, r13
mov r9, qword [rsp + 0x38]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.1400196d0
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14015a1f0
add rsp, 0x1070
pop r13
pop r12
pop rbp
ret
Function at 0x14001c360
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
lea rcx, [rbp - 0x31]
call fcn.1400176c0
nop
movabs rbx, 0x7ffffffffffffffe
mov rax, rbx
mov rcx, qword [rbp - 0x21]
sub rax, rcx
cmp rax, 0x22
jb 0x14001c576
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 7
cmova rax, qword [rbp - 0x31]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_35
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0xf]
call fcn.14001a820
nop
mov rcx, qword [rdi + 0x10]
mov rax, rbx
sub rax, rcx
cmp rax, 4
jb 0x14001c57c
cmp qword [rdi + 0x18], 7
jbe 0x14001c400
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 4
lea r9, [0x140980840]
lea rcx, [rbp - 0x11]
call fcn.14001a820
nop
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 7
cmova rdx, qword [rbp + 0xf]
lea r8, [rbp - 0x39]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14001c4bb
mov eax, dword [rbp - 1]
add eax, eax
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rcx, qword [rbp - 0x11]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x39]
test eax, eax
jne 0x14001c4b5
mov dword [rsp + 0x28], 4
lea rax, [0x1409808cc]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x39]
test eax, eax
je 0x14001c4fe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea rcx, [rbp - 0x11]
call fcn.140010ac0
nop
lea rcx, [rbp + 0xf]
call fcn.140010ac0
nop
lea rcx, [rbp - 0x31]
call fcn.140010ac0
movzx eax, bl
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14015a1f0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [0x1401bfcb8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001c4bb
mov rcx, qword [rbp - 0x21]
sub rbx, rcx
cmp rbx, 0x34
jb 0x14001c570
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 7
cmova rax, qword [rbp - 0x31]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_60
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x2f]
call fcn.14001a820
nop
lea rcx, [rbp + 0x2f]
call fcn.14004b2e0
nop
lea rcx, [rbp + 0x2f]
call fcn.140010ac0
mov bl, 1
jmp 0x14001c4bd
call fcn.1400108a0
nop
call fcn.1400108a0
nop
call fcn.1400108a0
int3
Function at 0x14001c590
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rcx
lea rcx, [0x1401bfcb8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001c714
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x14001c73b
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001c5f3
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_60
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x68]
call fcn.14001a820
nop
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x14001c735
cmp qword [rbx + 0x18], 7
jbe 0x14001c655
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], Ordinal_35
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x48]
call fcn.14001a820
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14001c6a9
cmp eax, 2
sete bl
jmp 0x14001c6fc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x68]
call fcn.14004b490
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffff80000002
test al, al
jne 0x14001c6e4
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor bl, bl
jmp 0x14001c6fc
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14001c6e0
mov bl, 1
lea rcx, [rsp + 0x48]
call fcn.140010ac0
nop
lea rcx, [rsp + 0x68]
call fcn.140010ac0
movzx eax, bl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14015a1f0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
call fcn.1400108a0
nop
call fcn.1400108a0
int3
Function at 0x14001c990
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov edi, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14001ca1e
test rdi, rdi
je 0x14001c9e6
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, reloc.WS2_32.dll_inet_addr
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14001c9d0
test eax, eax
jns 0x14001ca3f
test rdi, rdi
je 0x14001ca44
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14001cb0e
test rdi, rdi
jne 0x14001ca4b
xor eax, eax
jmp 0x14001cb0e
mov qword [rsp + 0x78], rbx
mov ebx, r14d
mov qword [rsp + 0x80], rbp
cmp dword [rdi], ebx
jbe 0x14001caee
mov eax, ebx
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rdi + 0x2e]
lea rbp, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rdi
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x14001caa0
lea rcx, [rsp + 0x28]
call fcn.140011c50
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14001cac0
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call fcn.140170a1c
test eax, eax
je 0x14001cb24
lea rcx, [rsp + 0x28]
call fcn.140010b40
inc ebx
cmp ebx, dword [rdi]
jb 0x14001ca63
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14015a1f0
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rsp + 0x28]
call fcn.140010b40
mov rax, rbx
jmp 0x14001cb01
Function at 0x1400490a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov r15, rcx
test rdx, rdx
je 0x14004920e
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14004920e
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14004920e
mov rcx, qword [rax + rdx + 0x90]
mov rax, rcx
shr rax, 0x20
test ecx, ecx
je 0x14004920a
test eax, eax
je 0x14004920a
mov ebp, ecx
add rbp, rdx
je 0x14004920a
xor r12d, r12d
nop dword [rax]
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x14004920a
lea rdx, [rsi + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140049150
lea rcx, [rsp + 0x20]
call fcn.140011c50
nop
lea rdx, [rsp + 0x20]
call fcn.140048430
mov r14, rax
lea rcx, [rsp + 0x20]
call fcn.140010b40
test r14, r14
je 0x140049200
mov ebx, dword [rbp + 0x10]
add rbx, rsi
je 0x140049200
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140049200
js 0x1400491fa
lea rdx, [rsi + 2]
add rdx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400491c0
lea rcx, [rsp + 0x20]
call fcn.140011c50
nop
lea r8, [rsp + 0x20]
mov rdx, r14
mov rcx, r15
call fcn.140048600
mov rdi, rax
lea rcx, [rsp + 0x20]
call fcn.140010b40
test rdi, rdi
je 0x1400491fa
mov qword [rbx], rdi
add rbx, 8
jne 0x140049190
add rbp, 0x14
jne 0x140049120
mov al, 1
jmp 0x140049210
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14004a230
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rbp + 0x30], rax
movabs rax, 0xed7c311d1d7263f5
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x80]
movabs rax, 0x808012dcc318690a
mov rbx, rcx
mov qword [rbp - 0x18], rax
movabs rcx, 0xbb185c4c65a7c72
movabs rax, 0x85e23ef02b851b7
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x10], rax
mov r9d, 0xf003f
movabs rax, 0x4f00428e4c56e804
mov qword [rbp + 0x28], rcx
mov qword [rbp - 8], rax
xor r8d, r8d
movabs rax, 0xba010629dc7676c9
mov rcx, 0xffffffff80000002
mov qword [rbp], rax
movabs rax, 0x1352d10868e2e84e
mov qword [rbp + 8], rax
movabs rax, 0x9a8abf5b5f3ed30b
mov qword [rbp + 0x10], rax
movabs rax, 0xe4cbfda750728b8
mov qword [rbp + 0x18], rax
movabs rax, 0x83533085fb597d5d
mov qword [rbp + 0x20], rax
movabs rax, 0xed28314e1d2b63a6
mov qword [rsp + 0x30], rax
movabs rax, 0x80c31280c355694f
mov qword [rsp + 0x38], rax
movabs rax, 0x83b239d02ca51c2
movups xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rbp - 0x20]
mov qword [rsp + 0x40], rax
movabs rax, 0x4f6f42cd4c22e86a
mov qword [rsp + 0x48], rax
movabs rax, 0xba6e065bdc0276a7
movups xmm1, xmmword [rsp + 0x40]
xorps xmm1, xmmword [rbp - 0x10]
mov qword [rsp + 0x50], rax
movabs rax, 0x1326d16d68b1e822
mov qword [rsp + 0x58], rax
movabs rax, 0x9af8bf3e5f6dd357
movups xmm2, xmmword [rsp + 0x50]
xorps xmm2, xmmword [rbp]
mov qword [rsp + 0x60], rax
movabs rax, 0xe29bfb9756e28ce
mov qword [rsp + 0x68], rax
movabs rax, 0x83533085fb597d2e
movups xmm3, xmmword [rsp + 0x60]
xorps xmm3, xmmword [rbp + 0x10]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x30]
movups xmm4, xmmword [rsp + 0x70]
xorps xmm4, xmmword [rbp + 0x20]
movdqa xmmword [rbp - 0x40], xmm4
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x60], xmm2
movdqa xmmword [rbp - 0x50], xmm3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004a3e4
xor bl, bl
jmp 0x14004a40b
cmp qword [rbx + 0x50], 7
lea rdx, [rbx + 0x38]
jbe 0x14004a3f2
mov rdx, qword [rdx]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
cmp eax, 2
je 0x14004a409
test eax, eax
je 0x14004a409
xor bl, bl
jmp 0x14004a40b
mov bl, 1
mov rcx, qword [rbp - 0x30]
test rcx, rcx
jle 0x14004a41a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14015a1f0
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rbp
ret
Function at 0x14004b640
Capabilities:
Access pe header

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rcx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rbx, rax
test rax, rax
jne 0x14004b671
xor edi, edi
mov eax, edi
jmp 0x14004b7dd
xorps xmm0, xmm0
mov qword [rsp + 0x88], rsi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x90], r14
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call fcn.14004bfd0
lea rcx, [rsp + 0x20]
call rax
movzx esi, word [rbx + 0x14]
xor edi, edi
movzx r8d, word [rbx + 6]
add rsi, rbx
mov r14d, dword [rsp + 0x48]
movzx edx, di
cmp di, r8w
jae 0x14004b6f4
mov r10, qword [rbx + 0x30]
lea r11d, [r14 - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, dx
lea rcx, [rax + rax*4]
mov eax, dword [rsi + rcx*8 + 0x24]
mov ecx, edi
add rax, r10
test r11, rax
sete cl
test r11, rax
jne 0x14004b701
inc dx
cmp dx, r8w
jb 0x14004b6d0
lea ecx, [r14 - 1]
test qword [rbx + 0x30], rcx
mov ecx, edi
sete cl
test ecx, ecx
je 0x14004b723
call fcn.14003b0e0
mov edx, dword [rbx + 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call rax
mov r14, rax
test rax, rax
jne 0x14004b72a
mov eax, edi
jmp 0x14004b7cd
mov rdx, r14
mov rcx, rbx
call fcn.14004b800
lea rax, [0x14004b890]
mov rcx, r14
sub rax, rbp
add rax, r14
call rax
test eax, eax
jne 0x14004b74f
mov ebx, edi
jmp 0x14004b7b9
mov rcx, rbp
mov qword [rsp + 0x98], r15
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rsi, rax
test rax, rax
je 0x14004b7af
movzx r15d, word [rax + 0x14]
movzx ebx, di
add r15, rax
cmp di, word [rax + 6]
jae 0x14004b7a1
nop dword [rax]
movzx eax, bx
lea rdx, [rax + rax*4]
mov ecx, dword [r15 + rdx*8 + 0x24]
add rcx, rbp
call fcn.14004bf20
test eax, eax
je 0x14004b7af
inc bx
cmp bx, word [rsi + 6]
jb 0x14004b780
mov rcx, rbp
call fcn.14004bf20
mov ebx, eax
test eax, eax
jne 0x14004b7b1
mov ebx, edi
mov r15, qword [rsp + 0x98]
call fcn.14003ba10
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call rax
mov eax, ebx
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14015a1f0
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret