joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007549c
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.18006631c
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800aa580], rbx
jne 0x1800755a2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180075677
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180075677
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800aa580], 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 [0x1800aa588], 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 [0x1800aa590], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800aa5a0], rax
test rax, rax
je 0x180075599
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800aa598], rax
jmp 0x1800755a9
mov rax, qword [0x1800aa598]
jmp 0x1800755b0
mov rax, qword [0x1800aa598]
mov r11, qword [0x1800aa5a0]
cmp rax, rdi
je 0x180075618
cmp r11, rdi
je 0x180075618
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800aa5a0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180075618
test rax, rax
je 0x180075618
call rsi
test rax, rax
je 0x180075612
lea rcx, [rsp + 0x88]
mov r9d, ntohs
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180075612
test byte [rsp + 0x38], 1
jne 0x180075618
bts ebp, 0x15
jmp 0x180075656
mov rcx, qword [0x1800aa588]
cmp rcx, rdi
je 0x180075656
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180075656
call rax
mov rbx, rax
test rax, rax
je 0x180075656
mov rcx, qword [0x1800aa590]
cmp rcx, rdi
je 0x180075656
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180075656
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800aa580]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180075677
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180075679
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 0x18007db90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffff80000001
jne 0x18007dbe7
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
or eax, 0x20019
mov dword [rsp + 0x44], eax
lea rdx, [rsp + 0x30]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x18007dbe7
xor al, al
jmp 0x18007dc83
mov rax, qword [rsp + 0x60]
mov ebx, dword [rax + 0x3c]
or ebx, 0x20019
mov rcx, qword [rsp + 0x60]
add rcx, 8
call fcn.1800014c8
mov rdx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18007dc7f
mov rcx, qword [rsp + 0x68]
call fcn.1800014c8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18007dc63
mov dword [rsp + 0x48], 1
jmp 0x18007dc6b
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [rsp + 0x40]
add rsp, 0x50
pop rbx
ret

Function at 0x18007dc90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x38
mov rcx, qword [rsp + 0x50]
call fcn.18007da20
movzx eax, al
test eax, eax
jne 0x18007dcbd
xor al, al
jmp 0x18007dd60
mov rcx, qword [rsp + 0x60]
call fcn.180008b60
test rax, rax
jne 0x18007dd0c
mov rcx, qword [rsp + 0x58]
call fcn.1800014c8
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 3
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18007dd0a
xor al, al
jmp 0x18007dd60
jmp 0x18007dd5e
mov rcx, qword [rsp + 0x60]
call fcn.180008b60
mov rdi, rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.180008b80
mov rbx, rax
mov rcx, qword [rsp + 0x58]
call fcn.1800014c8
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18007dd5e
xor al, al
jmp 0x18007dd60
mov al, 1
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x18007de30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x90]
call fcn.18007da20
movzx eax, al
test eax, eax
jne 0x18007de91
mov rcx, qword [rsp + 0x98]
call fcn.1800089b0
mov eax, dword [rsp + 0x68]
or eax, 1
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x98]
jmp 0x18007df9d
lea rcx, [rsp + 0x38]
call fcn.1800089b0
nop
mov rcx, qword [rsp + 0xa0]
call fcn.1800014c8
mov rdx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18007dee4
cmp dword [rsp + 0x30], 3
je 0x18007df13
mov rcx, qword [rsp + 0x98]
call fcn.1800089b0
mov eax, dword [rsp + 0x68]
or eax, 1
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x38]
call fcn.180008b00
mov rax, qword [rsp + 0x98]
jmp 0x18007df9d
cmp dword [rsp + 0x34], 0
jbe 0x18007df6e
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x38]
call fcn.180008b30
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.180008b80
mov rbx, rax
mov rcx, qword [rsp + 0xa0]
call fcn.1800014c8
mov rdx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
call fcn.180008a00
mov eax, dword [rsp + 0x68]
or eax, 1
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x38]
call fcn.180008b00
mov rax, qword [rsp + 0x98]
add rsp, 0x80
pop rbx
ret

Function at 0x18007dfb0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
cmp eax, 9
je 0x18007dfd3
movzx eax, word [rsp + 0x20]
cmp eax, 6
jne 0x18007dfd7
mov al, 1
jmp 0x18007dfd9
xor al, al
add rsp, 0x58
ret
Function at 0x18007e3c0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x100
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0x110]
call fcn.1800014c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x18007e4de
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.18007e320
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea r8, [0x18009631c]
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x78]
call fcn.180004250
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x28]
call fcn.1800042f0
nop
lea rcx, [rsp + 0x78]
call fcn.180001498
nop
lea rcx, [rsp + 0x50]
call fcn.180001498
lea rcx, [rsp + 0x28]
call fcn.1800014c8
mov rbx, rax
mov rcx, qword [rsp + 0x110]
call fcn.1800014c8
mov rdx, rbx
mov rcx, rax
call fcn.18005faa4
lea rcx, [rsp + 0x28]
call fcn.1800014c8
mov r8d, 5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
lea rcx, [rsp + 0x28]
call fcn.180001498
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x100
pop rbx
ret
Function at 0x18007ea10
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x158
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x140], rax
call fcn.18007e820
mov qword [rsp + 0x30], 0
call fcn.180025e00
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], gethostname
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0x40]
call fcn.1800023ac
nop
mov byte [rsp + 0x98], 0x5c
mov byte [rsp + 0x99], Ordinal_50
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.180002820
lea rdi, [rsp + 0xe0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.1800027e0
lea rdi, [rsp + 0xd0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x99]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xd0]
call fcn.180002d40
mov r8, 0xffffffffffffffff
lea rdx, [0x1800965ec]
lea rcx, [rsp + 0x40]
call fcn.180002860
mov dword [rsp + 0x68], eax
movsxd rax, dword [rsp + 0x68]
cmp rax, 0xffffffffffffffff
je 0x18007eb56
mov eax, dword [rsp + 0x68]
add eax, 1
movsxd r9, eax
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1800028a0
lea rcx, [rsp + 0x70]
call fcn.1800014c8
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea rcx, [rsp + 0x70]
call fcn.180001498
lea rcx, [rsp + 0x40]
call fcn.1800014c8
lea rdx, [0x18009661c]
mov rcx, rax
call fcn.18005f8f0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18007eb9a
mov byte [rsp + 0xc0], 0
lea rcx, [rsp + 0x40]
call fcn.180001498
mov al, byte [rsp + 0xc0]
jmp 0x18007ecbe
mov rcx, qword [rsp + 0x170]
call fcn.1800014c8
mov r8, rax
mov edx, 0x2712
mov rcx, qword [rsp + 0x30]
call fcn.180025e50
mov r8d, 0x7530
mov edx, Ordinal_79
mov rcx, qword [rsp + 0x30]
call fcn.180025e50
mov r8, qword [rsp + 0x28]
mov edx, 0x2711
mov rcx, qword [rsp + 0x30]
call fcn.180025e50
lea r8, [fcn.18005f008]
mov edx, 0x4e2b
mov rcx, qword [rsp + 0x30]
call fcn.180025e50
mov r8d, 1
mov edx, Ordinal_46
mov rcx, qword [rsp + 0x30]
call fcn.180025e50
mov r8d, 1
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov rcx, qword [rsp + 0x30]
call fcn.180025e50
mov r8d, 1
mov edx, 0x34
mov rcx, qword [rsp + 0x30]
call fcn.180025e50
mov rcx, qword [rsp + 0x30]
call fcn.1800260c0
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x28]
call fcn.18005edf4
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x200002
mov rcx, qword [rsp + 0x30]
call fcn.1800260f0
mov rcx, qword [rsp + 0x30]
call fcn.1800260d0
cmp dword [rsp + 0x24], 0
jne 0x18007ec93
cmp dword [rsp + 0x20], 0xc8
jne 0x18007ec93
mov dword [rsp + 0x138], 1
jmp 0x18007ec9e
mov dword [rsp + 0x138], 0
movzx eax, byte [rsp + 0x138]
mov byte [rsp + 0xc1], al
lea rcx, [rsp + 0x40]
call fcn.180001498
mov al, byte [rsp + 0xc1]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x158
pop rdi
pop rsi
ret
Function at 0x18007f5b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x370
mov qword [rsp + 0x350], 0xfffffffffffffffe
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x368], rax
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18007f5f9
xor al, al
jmp 0x18007f79e
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
jmp 0x18007f621
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
cmp rax, 9
jae 0x18007f79c
mov eax, dword [rsp + 0x28]
lea rdx, str.7z.dll
mov rdx, qword [rdx + rax*8]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x18007f797
movzx eax, byte [0x1800aa620]
test eax, eax
jne 0x18007f706
xor eax, eax
mov word [rsp + 0x60], ax
lea rdi, [rsp + 0x62]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x388]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call fcn.180003500
nop
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x298]
call fcn.18007f220
mov qword [rsp + 0x358], rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x360], rax
mov rdx, qword [rsp + 0x360]
lea rcx, [0x1800aa628]
call fcn.180001528
nop
lea rcx, [rsp + 0x298]
call fcn.1800014f4
nop
lea rcx, [rsp + 0x270]
call fcn.1800014f4
mov byte [0x1800aa620], 1
mov rdx, qword [rsp + 0x380]
lea rcx, [rsp + 0x2c0]
call fcn.180003500
nop
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x38]
call fcn.18007f220
nop
lea rcx, [rsp + 0x2c0]
call fcn.1800014f4
lea rdx, [0x1800aa628]
lea rcx, [rsp + 0x38]
call fcn.18000a550
movzx eax, al
test eax, eax
je 0x18007f771
mov byte [rsp + 0x2e8], 0
lea rcx, [rsp + 0x38]
call fcn.1800014f4
mov al, byte [rsp + 0x2e8]
jmp 0x18007f79e
mov byte [rsp + 0x2e9], 1
lea rcx, [rsp + 0x38]
call fcn.1800014f4
mov al, byte [rsp + 0x2e9]
jmp 0x18007f79e
jmp 0x18007f616
mov al, 1
mov rcx, qword [rsp + 0x368]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x370
pop rdi
ret
Function at 0x140057440
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005744d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005745d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140057445
lea eax, [rcx + 1]
jmp 0x14005746b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005747e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140057464
sub eax, 3
jb 0x14005749e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400574ed
sar eax, 1
movsxd rbp, eax
jb 0x1400574d4
jmp 0x1400574ac
add ebx, ebx
jne 0x1400574aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400574d4
inc ecx
add ebx, ebx
jne 0x1400574ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400574d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400574cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400574bc
add ecx, 2
jmp 0x1400574d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140057402
jmp 0x14005744d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29c00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140057539
cmp rsi, rcx
jae 0x140057541
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140057520
cmp al, 0x8f
ja 0x140057520
cmp byte [rsi - 2], 0xf
je 0x140057526
sub al, 0xe8
cmp al, 1
ja 0x14005750a
cmp rsi, rcx
jae 0x140057541
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140057510
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140057541
lodsb al, byte [rsi]
jmp 0x140057520
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x55000]
mov eax, dword [rdi]
or eax, eax
je 0x1400575aa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x65b3c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005754e
jns 0x140057583
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005758d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400575a4
mov qword [rbx], rax
add rbx, 8
jmp 0x14005756e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400575e4
cmp al, 0xef
ja 0x1400575d6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400575b6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400575c5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140057638
sub rsp, 0xffffffffffffff80
jmp 0x14000c1a0
Function at 0x140003830
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1400f6858]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x78]
mov ecx, eax
call fcn.1400c7f38
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0
jmp 0x140003927
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x30], eax
jae 0x140003963
mov rax, qword [rsp + 0x40]
add rax, 8
mov r9, rax
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x68]
lea rcx, [0x1400fd9f8]
call fcn.14000c7a0
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x40], rax
jmp 0x14000391d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400c7dc4
cmp qword [rsp + 0x50], 0
jne 0x14000398a
mov qword [rsp + 0x60], 0
jmp 0x14000399d
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400c78e0
add rsp, 0xa8
ret
Function at 0x140004e40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1400f6858]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1400fd964], eax
jle 0x140004eb7
lea rcx, [0x1400fd964]
call fcn.1400c7e74
cmp dword [0x1400fd964], 0xffffffff
jne 0x140004eb7
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [0x1400fd970]
call fcn.1400087f0
lea rcx, [0x1400cc250]
call fcn.1400c775c
nop
lea rcx, [0x1400fd964]
call fcn.1400c7e08
lea rcx, [0x1400fd970]
call fcn.140008430
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x60]
call fcn.140008410
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x140004f22
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140004f22
mov dword [rsp + 0x20], 1
jmp 0x140004f2a
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400c78e0
add rsp, 0x58
ret
Function at 0x140004f50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x1400f6858]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x68]
call fcn.1400087f0
nop
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.1400085d0
lea rcx, [rsp + 0x68]
call fcn.140008430
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140004fda
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x68]
call fcn.1400086a0
movzx eax, byte [rsp + 0x34]
jmp 0x140005190
mov byte [rsp + 0x60], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140005030
mov byte [rsp + 0x35], 0
lea rcx, [rsp + 0x68]
call fcn.1400086a0
movzx eax, byte [rsp + 0x35]
jmp 0x140005190
mov byte [rsp + 0x61], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140005086
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x68]
call fcn.1400086a0
movzx eax, byte [rsp + 0x36]
jmp 0x140005190
mov byte [rsp + 0x62], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x62]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400050dc
mov byte [rsp + 0x37], 0
lea rcx, [rsp + 0x68]
call fcn.1400086a0
movzx eax, byte [rsp + 0x37]
jmp 0x140005190
mov rcx, qword [rsp + 0xa0]
call fcn.140008400
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xa0]
call fcn.140008430
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140005157
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x68]
call fcn.1400086a0
movzx eax, byte [rsp + 0x38]
jmp 0x140005190
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140005170
mov dword [rsp + 0x3c], 1
jmp 0x140005178
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x39], al
lea rcx, [rsp + 0x68]
call fcn.1400086a0
movzx eax, byte [rsp + 0x39]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400c78e0
add rsp, 0x98
ret