joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046b30
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [rsp + 0x20], 9
sete al
add rsp, 0x58
ret

Function at 0x140046e80
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140046f28
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov r9d, 1
mov dword [rsp + 0x20], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x58
ret
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x58
ret

Function at 0x140046f40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400470a8
cmp byte [rdx], 0
je 0x1400470a8
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test ebx, ebx
je 0x140046fb8
test eax, eax
je 0x140046fc0
lea rax, [rsp + 0x48]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140047083
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x1a0], rbp
lea r8, [rsp + 0x60]
xor ebp, ebp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140047064
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
xor r8d, r8d
call fcn.140046f40
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14004709e
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x140047010
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbp, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x170
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14004707b
mov eax, gethostbyname
jmp 0x140047083
Function at 0x1400470b0
Capabilities:
Get hostname

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, qword [rsp + 0x2f8]
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rdx, rdx
je 0x140047222
test rcx, rcx
je 0x140047222
test rbx, rbx
je 0x140047222
xor edx, edx
mov qword [rsp + 0x298], r15
mov r8d, 0x104
mov dword [rsp + 0x50], 0x103
lea rcx, [rsp + 0x60]
call fcn.140065dd0
xor edx, edx
lea rcx, [rsp + 0x170]
mov r8d, 0x104
call fcn.140065dd0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor r15d, r15d
cmp byte [rsp + 0x60], 0x5c
jne 0x140047176
mov eax, r15d
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rsp + rax + 0x60]
mov byte [rsp + rax + 0x170], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140047160
jmp 0x14004718f
lea r8, [rsp + 0x60]
lea rdx, [0x1400bdb20]
lea rcx, [rsp + 0x170]
call fcn.140027490
lea rdx, [rsp + 0x170]
mov rcx, rdi
call fcn.14007f400
test eax, eax
mov qword [rsi], r15
mov r8, rsi
mov rdx, r14
cmove rdi, r15
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x140047218
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rbx
cmp dword [rsp + 0x2f0], r15d
je 0x140047207
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], r15d
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov r15, qword [rsp + 0x298]
jmp 0x140047227
mov r9d, 0xf003f
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r15, qword [rsp + 0x298]
jmp 0x140047227
mov eax, gethostbyname
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140047250
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x40
mov rdi, r9
test rdx, rdx
je 0x140047300
test rcx, rcx
je 0x140047300
test r8, r8
je 0x140047300
test r9, r9
je 0x140047300
xor r9d, r9d
mov qword [r11 + 8], rbx
lea rax, [r11 - 0x18]
mov qword [r11 - 0x18], r9
mov qword [r11 - 0x20], rax
mov dword [r11 - 0x28], r9d
mov qword [r11 + 0x10], r9
lea r9, [r11 + 0x10]
call fcn.1400470b0
mov ebx, eax
test eax, eax
jne 0x1400472e3
mov rax, qword [rsp + 0x80]
xor r8d, r8d
mov r9, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400472f3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, gethostbyname
add rsp, 0x40
pop rdi
ret
Function at 0x140047310
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, r9
test rdx, rdx
je 0x1400473bf
test rcx, rcx
je 0x1400473bf
test r8, r8
je 0x1400473bf
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
call fcn.1400470b0
mov ebx, eax
test eax, eax
jne 0x1400473a2
mov eax, dword [rsp + 0x78]
xor r8d, r8d
mov r9d, dword [rsp + 0x80]
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400473b2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, gethostbyname
add rsp, 0x40
pop rdi
ret
Function at 0x1400473d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4a0
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea r9, [rsp + 0x270]
mov rbx, r8
sub r9, rdx
mov rdi, rdx
mov ebp, ecx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140047410
lea rcx, [rsp + 0x270]
call fcn.140045f40
lea rcx, [rsp + 0x270]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140047440
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140047450
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140047543
lea rbx, [rsp + 0x160]
sub rbx, rdi
nop word [rax + rax]
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400474a0
lea rcx, [rsp + 0x160]
call fcn.140045f40
lea rax, [rsp + 0x160]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1400474c6
lea r8, [rsp + 0x4c]
xor edx, edx
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400474e0
mov edx, 0x80
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x140
call fcn.140065dd0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x140047490
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
je 0x140047598
lea rdx, [rsp + 0x380]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea rcx, [rsp + 0x380]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, ebx
jmp 0x14004759a
xor eax, eax
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140063ed0
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400475c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x28]
xor edi, edi
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x1400476fb
lea r8, [rsp + 0x20]
mov rcx, rsi
lea edx, [rdi + 2]
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x14004767c
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x14004766b
lea rcx, [rsp + 0x30]
call fcn.140045f40
lea rcx, [rsp + 0x30]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140047640
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140047650
lea rcx, [rsp + 0x30]
call fcn.140047730
mov edi, eax
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rcx]
call qword [r8 + 0x28]
lea r8, [rsp + 0x20]
mov edx, 0x17
mov rcx, rsi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x1400476fb
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x1400476eb
lea rcx, [rsp + 0x30]
call fcn.140045f40
lea rcx, [rsp + 0x30]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400476c0
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400476d0
lea rcx, [rsp + 0x30]
call fcn.140047730
mov edi, eax
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140063ed0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140047730
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x390
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rcx
mov esi, 1
test rcx, rcx
je 0x140047916
cmp byte [rcx], 0
je 0x140047916
call fcn.140046380
test eax, eax
jne 0x140047779
mov eax, esi
jmp 0x140047918
lea rdx, [rsp + 0x270]
mov qword [rsp + 0x3b0], rbp
sub rdx, rdi
mov rcx, rdi
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140047790
lea rcx, [rsp + 0x270]
call fcn.140045f40
lea rcx, [rsp + 0x270]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400477b6
mov eax, dword [0x1401038d0]
lea rdx, [rsp + 0x20]
mov dword [rcx], eax
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140047901
mov qword [rsp + 0x3a8], rbx
lea rbx, [rsp + 0x160]
sub rbx, rdi
nop dword [rax + rax]
mov rax, rdi
movzx ecx, byte [rax]
mov byte [rbx + rax], cl
inc rax
test cl, cl
jne 0x140047803
lea rcx, [rsp + 0x160]
call fcn.140045f40
lea rcx, [rsp + 0x160]
dec rcx
inc rcx
cmp byte [rcx], 0
jne 0x140047828
lea r8, [rsp + 0x4c]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140047840
test byte [rsp + 0x20], 0x10
je 0x14004789d
movzx ecx, byte [rsp + 0x4c]
cmp cl, byte [0x140101908]
movzx eax, byte [rsp + 0x4d]
jne 0x140047871
cmp al, byte [0x140101909]
je 0x1400478c0
cmp cl, byte [0x1401038d4]
jne 0x14004788e
cmp al, byte [0x1401038d5]
jne 0x14004788e
movzx eax, byte [rsp + 0x4e]
cmp al, byte [0x1401038d6]
je 0x1400478c0
lea rcx, [rsp + 0x160]
call fcn.140047730
jmp 0x1400478be
mov edx, 0x80
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x140
call fcn.140065dd0
test esi, esi
je 0x1400478e6
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x1400478e8
xor eax, eax
test eax, eax
jne 0x140047800
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x3a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rbp, qword [rsp + 0x3b0]
mov eax, esi
jmp 0x140047918
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140063ed0
mov rsi, qword [rsp + 0x3b8]
add rsp, 0x390
pop rdi
ret
Function at 0x1400479d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
cmp dword [0x140135234], 0
jne 0x140047c01
cmp dword [0x140135230], 0
jne 0x140047c01
mov byte [rbp - 0x69], 0x30
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
xor esi, esi
mov qword [rbp - 0x51], rsi
lea r8, [rbp - 0x69]
mov edx, 0x104
lea rcx, [rbp - 0x61]
call fcn.140047d80
nop
mov edx, 0x104
mov rbx, qword [rbp - 0x61]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x21], 0xf
mov qword [rbp - 0x29], rsi
mov byte [rbp - 0x39], sil
cmp byte [rbx], sil
jne 0x140047a77
mov r8d, esi
jmp 0x140047a8a
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140047a80
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140003430
nop
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.wsock32.dll
lea rcx, [rbp - 0x39]
call fcn.140003560
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x27]
call fcn.140002000
nop
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.140005930
nop
lea rcx, [rbp + 0x27]
call fcn.1400036b0
lea r9, [0x140135238]
lea r8, [0x140135240]
lea rdx, [0x140135230]
lea rcx, [rbp + 7]
call fcn.140005e10
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.140005930
nop
lea r9, [0x140135238]
lea r8, [0x140135240]
lea rdx, [0x140135238]
lea rcx, [rbp - 0x19]
call fcn.140005ce0
nop
lea rax, [rbp - 0x19]
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x19]
call fcn.1400036b0
nop
lea rax, [rbp + 7]
mov qword [rbp - 0x49], rax
lea rcx, [rbp + 7]
call fcn.1400036b0
nop
mov rax, qword [rbp - 0x21]
cmp rax, 0x10
jb 0x140047b96
inc rax
mov rcx, qword [rbp - 0x39]
cmp rax, 0x1000
jb 0x140047b91
test cl, 0x1f
je 0x140047b64
call fcn.14006ef04
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140047b73
call fcn.14006ef04
int3
sub rcx, rax
cmp rcx, 8
jae 0x140047b82
call fcn.14006ef04
int3
cmp rcx, 0x27
jbe 0x140047b8e
call fcn.14006ef04
int3
mov rcx, rax
call fcn.1400369b0
mov qword [rbp - 0x21], 0xf
mov qword [rbp - 0x29], rsi
mov byte [rbp - 0x39], 0
mov rax, qword [rbp - 0x51]
sub rax, rbx
cmp rax, 0x1000
jb 0x140047bed
test bl, 0x1f
je 0x140047bc0
call fcn.14006ef04
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x140047bcf
call fcn.14006ef04
int3
sub rbx, rax
cmp rbx, 8
jae 0x140047bde
call fcn.14006ef04
int3
cmp rbx, 0x27
jbe 0x140047bea
call fcn.14006ef04
int3
mov rbx, rax
mov rcx, rbx
call fcn.1400369b0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], rsi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140063ed0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140047e10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov r9d, 0x270
mov rbx, rcx
cmp eax, r9d
jne 0x140047e6b
lea r8, [rcx + 8]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140047e30
jmp 0x140047e77
cmp eax, 0x4e0
jb 0x140047e77
call fcn.1400481a0
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r10, rcx
lea r9, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x1400481b0
lea r9, [r10 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x140048200
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov dword [r10], r11d
ret
Function at 0x140048870
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x50
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, rdx
mov rsi, rcx
mov dword [rax - 0x28], 5
mov qword [rax - 0x20], 0
lea r8, [rax - 0x20]
call fcn.1400485d0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140048976
mov rdx, rdi
mov rcx, rsi
call fcn.1400489a0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140048966
mov rdx, rdi
mov rcx, rsi
call fcn.1400486c0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140048951
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xc0000000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140048951
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x38]
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.1400487b0
jmp 0x14004896b
mov r14, qword [rsp + 0x38]
xor edx, edx
mov rcx, r14
call fcn.140063b20
nop
mov eax, ebx
jmp 0x14004897e
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14004aa40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [0x140135616], 0
lea rsi, [0x1401354f0]
mov edi, edx
mov rbx, rcx
je 0x14004aa98
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x29]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rcx, rsi
call fcn.140045f40
cmp byte [0x1401354f0], 0
jne 0x14004aba4
mov rcx, qword [0x140134cf0]
mov r8d, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
mov rcx, rsi
call fcn.140064f8c
test rax, rax
je 0x14004aad0
mov byte [rax], 0
mov rcx, rsi
call fcn.140045f40
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
mov byte [rsp + rcx + 0x30], al
lea rcx, [rcx + 1]
test al, al
jne 0x14004aae0
lea rcx, [rsp + 0x30]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14004ab00
lea r8, str.msocxushell.dll
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14004ab20
lea rcx, [rsp + 0x30]
call fcn.140046400
test eax, eax
jne 0x14004ab46
mov byte [0x1401354f0], al
jmp 0x14004ab4f
cmp byte [0x1401354f0], 0
jne 0x14004aba4
xor r9d, r9d
mov edx, 0x104
mov rcx, rsi
lea r8d, [r9 + 1]
call fcn.14004a6a0
test eax, eax
je 0x14004ab7c
mov edx, 0x5c
mov rcx, rsi
call fcn.140064f8c
test rax, rax
je 0x14004ab7c
mov byte [rax], 0
cmp byte [0x1401354f0], 0
jne 0x14004aba4
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x29]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rcx, rsi
call fcn.140045f40
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14006f330
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140063ed0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret