joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028a78
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x140
lea r9, [rsp + 0x30]
mov esi, 0x200
mov r8d, 0x104
mov dword [rax + 0x20], esi
call fcn.140025178
test eax, eax
jne 0x140028b6d
lea rcx, [rsp + 0x30]
call fcn.140013c88
test rax, rax
mov rbx, rax
je 0x140028b74
call fcn.14000db18
test eax, eax
mov rax, rbx
je 0x140028b19
cmp word [rbx], 0
je 0x140028ae9
cmp word [rax], 0x5c
je 0x140028ae5
add rax, 2
cmp word [rax], 0
jne 0x140028ad3
jmp 0x140028ae9
and word [rax], 0
lea rax, [rsp + 0x160]
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x168]
lea rdx, [rsp + 0x160]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x140028b5f
cmp byte [rbx], 0
je 0x140028b31
cmp byte [rax], 0x5c
je 0x140028b2e
add rax, 1
cmp byte [rax], 0
jne 0x140028b1e
jmp 0x140028b31
mov byte [rax], 0
lea rax, [rsp + 0x160]
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x168]
lea rdx, [rsp + 0x160]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov rcx, rbx
mov edi, eax
call sub.msvcrt.dll_free
test edi, edi
je 0x140028b74
mov esi, dword [rsp + 0x168]
lea r11, [rsp + 0x140]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14002be78
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
xor edx, edx
lea rcx, [0x14008fa20]
lea r8d, [rdx + 0x30]
call sub.msvcrt.dll_memset
lea rcx, [0x14008fa20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [0x1400892b0]
mov edx, 1
call fcn.140011da8
xor eax, eax
add rsp, 0x28
ret
Function at 0x14004ec0c
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov edi, edx
mov rsi, rcx
call fcn.14004ebbc
xor ebx, ebx
cmp qword [0x14008e7b0], rbx
je 0x14004ec63
call fcn.140062754
cmp dword [rax + 0x10], 1
jne 0x14004ec4d
cmp edi, 0x19
je 0x14004ec63
cmp edi, 0x17
je 0x14004ec63
cmp edi, 0x16
je 0x14004ec63
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
xor ecx, ecx
call qword [0x14008e7b0]
jmp 0x14004ed1d
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], bx
call sub.msvcrt.dll_memset
cmp edi, 0x19
je 0x14004ec90
cmp edi, 0x17
je 0x14004ec90
cmp edi, 0x16
mov rcx, 0xffffffff80000001
jne 0x14004ec97
mov rcx, 0xffffffff80000002
lea rax, [rsp + 0x2a0]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x14004ecf5
lea rdx, [rsp + 0x30]
mov ecx, edi
call fcn.14004e9ac
mov rcx, qword [rsp + 0x2a0]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r9d, 0x104
call fcn.14004f4ec
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x70]
mov rdx, rsi
lea rax, [rsp + 0x70]
sub rdx, rcx
movzx ecx, word [rax]
mov word [rdx + rax], cx
add rax, 2
cmp cx, bx
jne 0x14004ed05
cmp word [rsi], bx
setne bl
mov eax, ebx
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14004ed34
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r8d, edx
mov r10d, edx
xor r11d, r11d
mov r9d, edx
mov rbx, rcx
imul r8d, edx
shr r10d, 2
je 0x14004ed78
mov eax, dword [rbx]
add rbx, 4
lea ecx, [rax + r8]
mov edx, eax
imul edx, r11d
add r11d, 1
imul edx, r9d
imul edx, edx, 0x11
mov r8d, edx
xor r8d, ecx
cmp r11d, r10d
jb 0x14004ed52
mov rbx, qword [rsp + 8]
mov eax, r8d
ret

Function at 0x14004ee54
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
xor ecx, ecx
mov dword [0x14008b980], 0x11223344
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14004ee24]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov eax, dword [0x14008b980]
add rsp, 0x28
ret
Function at 0x14004eeb8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx], 0
mov rbx, rcx
je 0x14004eed1
mov eax, 1
jmp 0x14004ef6c
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx], rax
je 0x14004ef6a
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x20], 0x4e
mov qword [rsp + 0x29], rcx
mov qword [rsp + 0x21], rcx
mov byte [rsp + 0x30], cl
mov word [rsp + 0x31], cx
mov byte [rsp + 0x33], cl
mov rcx, rax
mov byte [rsp + 0x2b], 0x65
mov byte [rsp + 0x2c], 0x61
mov byte [rsp + 0x23], 0x72
mov byte [rsp + 0x2e], 0x45
mov byte [rsp + 0x2f], 0x78
mov byte [rsp + 0x24], 0x65
mov byte [rsp + 0x25], 0x61
mov byte [rsp + 0x21], 0x74
mov byte [rsp + 0x2d], 0x64
mov byte [rsp + 0x26], 0x74
mov byte [rsp + 0x27], 0x65
mov byte [rsp + 0x22], 0x43
mov byte [rsp + 0x2a], 0x72
mov byte [rsp + 0x28], 0x54
mov byte [rsp + 0x29], 0x68
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
jmp 0x14004eec7
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x14004ef78
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [rsp + 0x24], 6
setae al
add rsp, 0x148
ret

Function at 0x14004efe8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xd0
mov rsi, rdx
mov rbx, rcx
call fcn.14004ef78
xor edi, edi
cmp eax, edi
je 0x14004f0fe
mov rcx, rbx
call fcn.14004eeb8
mov rbx, qword [rbx + 8]
cmp rbx, rdi
jne 0x14004f027
xor eax, eax
jmp 0x14004f136
xor edx, edx
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x108]
xor eax, eax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov r9, rsi
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x80]
mov edx, 0x1fffff
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x80], 0x48
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x88], 0x10003
mov qword [rsp + 0x90], InitCommonControls
mov qword [rsp + 0xa8], 0x10004
mov qword [rsp + 0xb0], 8
mov qword [rsp + 0x60], rdi
call rbx
cmp eax, edi
cmove rdi, qword [rsp + 0x60]
mov rax, rdi
jmp 0x14004f136
mov rax, qword [rsp + 0x118]
mov r9, qword [rsp + 0x100]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x108]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14004f36c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov eax, dword [rsp + 0x78]
mov dword [r11 + 0x20], r9d
lea r9, [r11 + 0x20]
mov dword [rsp + 0x78], eax
lea rax, [r11 + 0x30]
mov qword [r11 - 0x10], rax
mov rax, qword [rsp + 0x70]
mov qword [r11 - 0x18], rax
and qword [r11 - 0x20], 0
and qword [r11 - 0x28], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add rsp, 0x48
ret

Function at 0x14004f3ec
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
lea rax, [r11 + 0x18]
mov r9d, 4
xor r8d, r8d
mov dword [r11 - 0x10], r9d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x14004f42c
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x30
mov r10, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
mov r9d, 1
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, r10
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rdi
ret

Function at 0x14004f4ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
lea eax, [r9 + r9]
mov rbx, r8
lea r9, [r11 - 0x18]
mov dword [rsp + 0x68], eax
lea rax, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004f534
cmp dword [rsp + 0x68], 2
jb 0x14004f530
mov ecx, dword [rsp + 0x68]
shr rcx, 1
and word [rbx + rcx*2], ax
jmp 0x14004f534
and word [rbx], 0
add rsp, 0x40
pop rbx
ret

Function at 0x14004f54c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov dword [rsp + 0x68], 4
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x48
ret

Function at 0x14004fb8c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
sub rsp, 0x38
cmp dword [rsp + 0x60], 0
je 0x14004fbb7
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14004fbd4
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret
Function at 0x14004fc6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x38]
mov rdi, r9
xor r8d, r8d
mov r9d, 0x20019
xor ebx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x14004fcd4
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140076f40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [rbx + 1]
cmp eax, ebx
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14004fcec
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x28
mov r11, rdx
mov eax, r9d
mov r9, qword [rsp + 0x58]
test ecx, ecx
mov r10, r8
mov rdx, r8
mov rcx, r11
je 0x14004fd17
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax]
call fcn.14004f5ac
jmp 0x14004fd27
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
add rsp, 0x28
ret

Function at 0x14004fd3c
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rsi
push rdi
mov eax, 0x20030
call fcn.1400751b0
sub rsp, rax
test ecx, ecx
mov r10, r9
mov rdi, r8
mov rsi, rdx
je 0x14004fdc6
cmp qword [rsp + 0x20060], 0
je 0x14004fda8
mov rcx, qword [rsp + 0x20060]
mov dx, 0x22
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x14004fda8
mov r9, qword [rsp + 0x20060]
and word [rsp + 0x30], 0
lea r8, str.__s_
lea rcx, [rsp + 0x30]
mov edx, 0xfffe
call sub.msvcrt.dll__snwprintf
lea r8, [rsp + 0x30]
jmp 0x14004fdb0
mov r8, qword [rsp + 0x20060]
mov r9, qword [rsp + 0x20070]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x14004fdf5
mov rax, qword [rsp + 0x20070]
mov r9, qword [rsp + 0x20060]
mov r8, r10
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20068]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rsi, qword [rsp + 0x20040]
add rsp, 0x20030
pop rdi
ret
Function at 0x14004ffdc
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x4040
call fcn.1400751b0
sub rsp, rax
mov rsi, rdx
xor edx, edx
mov rdi, r8
test ecx, ecx
mov rbx, r9
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
je 0x14005004f
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x4070]
and word [rsp + 0x30], 0
mov edx, dword [rcx]
test edx, edx
je 0x140050032
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140061e64
mov r9, qword [rsp + 0x4078]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x1400500c0
and word [rsp + 0x30], 0
call sub.msvcrt.dll_memset
mov rdx, qword [rsp + 0x4078]
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x30]
lea r8, [0x140076a00]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor esi, esi
lea rdi, [rsp + 0x30]
test eax, eax
setne sil
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
je 0x1400500c0
mov rdx, qword [rsp + 0x4070]
mov r9d, ecx
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140063544
lea r11, [rsp + 0x4040]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400515b8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14008e7a4], 0
jne 0x140051686
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov rbx, rax
je 0x140051686
lea rdx, [0x140078eb0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14008b730], rax
je 0x140051686
lea rdx, str.Module32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14008b720], rax
je 0x140051686
lea rdx, str.Module32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14008b718], rax
je 0x140051686
lea rdx, str.Process32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14008b4f0], rax
je 0x140051686
lea rdx, str.Process32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x14008e7a4]
mov edx, 1
test rax, rax
mov qword [0x14008b4f8], rax
cmovne ecx, edx
mov dword [0x14008e7a4], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x1400519b8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x140051a3a
lea rcx, str.psapi.dll
call fcn.1400631b4
lea rdx, str.GetModuleBaseNameW
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcessModules
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleFileNameExW
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcesses
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleInformation
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140051aa8
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x6c0
mov rbp, rcx
mov rcx, qword [rcx + 0x48]
xor r12d, r12d
cmp rcx, r12
je 0x140051ad1
call sub.msvcrt.dll_free
xor edx, edx
mov qword [rbp + 0x48], r12
mov dword [rbp + 0x58], r12d
lea ecx, [rdx + 2]
mov dword [rbp + 0x50], r12d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rcx, [rsp + 0x274]
xor edx, edx
mov r8d, 0x234
mov rsi, rax
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x270]
mov rcx, rsi
mov dword [rsp + 0x270], 0x238
call sub.KERNEL32.dll_Process32FirstW
jmp 0x140051c9e
mov r8d, dword [rsp + 0x278]
mov eax, dword [rsp + 0x290]
xor edx, edx
mov ecx, 0x410
mov word [rsp + 0x34], r12w
mov dword [rsp + 0x244], r12d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x240], eax
mov dword [rsp + 0x248], r12d
mov dword [rsp + 0x24c], r12d
mov dword [rsp + 0x250], r12d
mov dword [rsp + 0x254], r12d
mov dword [rsp + 0x258], r12d
mov dword [rsp + 0x25c], r12d
mov dword [rsp + 0x260], r12d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r12
mov rdi, rax
je 0x140051c4d
lea rcx, [rsp + 0x4b2]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x4b0], r12w
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x4b0]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x20], 0x104
call fcn.140051a48
cmp word [rsp + 0x4b0], r12w
jne 0x140051c05
lea r9, [rsp + 0x6e0]
lea r8, [rsp + 0x4b0]
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x6e0], 0x104
call fcn.140051498
lea rdx, [rsp + 0x4b0]
lea rcx, [rsp + 0x34]
call fcn.140051838
lea r11, [rsp + 0x25c]
lea r9, [rsp + 0x254]
lea r8, [rsp + 0x24c]
lea rdx, [rsp + 0x244]
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.1400513e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rdi, dword [rbp + 0x58]
cmp edi, r12d
jl 0x140051c9e
mov eax, dword [rbp + 0x54]
lea r8, [rbp + 0x50]
lea rcx, [rbp + 0x48]
mov r9d, 0x234
mov edx, edi
mov dword [rsp + 0x20], eax
call fcn.140062ac4
lea r11d, [rdi + 1]
cmp dword [rbp + 0x58], r11d
jge 0x140051c80
mov dword [rbp + 0x58], r11d
mov rcx, rdi
lea rdx, [rsp + 0x30]
mov r8d, 0x234
imul rcx, rcx, 0x234
add rcx, qword [rbp + 0x48]
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x270]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
cmp eax, r12d
jne 0x140051b1f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140052008
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14008e7a8], 0
jne 0x1400520ea
lea rcx, str.psapi.dll
call fcn.1400631b4
test rax, rax
mov rbx, rax
je 0x1400520ea
lea rdx, str.GetModuleBaseNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14008b748], rax
je 0x1400520d7
lea rdx, str.EnumProcessModules
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14008b738], rax
je 0x1400520d7
lea rdx, str.GetModuleFileNameExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14008b728], rax
je 0x1400520d7
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14008b978], rax
je 0x1400520d7
lea rdx, str.GetModuleInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x14008e7a8]
mov edx, 1
test rax, rax
mov qword [0x14008b740], rax
cmovne ecx, edx
mov dword [0x14008e7a8], ecx
jmp 0x1400520dd
mov ecx, dword [0x14008e7a8]
test ecx, ecx
jne 0x1400520ea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret
Function at 0x140052280
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1f10
call fcn.1400751b0
sub rsp, rax
xor r13d, r13d
mov r12, r8
mov rbp, rdx
mov rsi, rcx
mov edi, 0x105
lea r14, [0x14008ad40]
mov rbx, r13
lea edx, [rdi - 0xa]
mov rcx, r14
call fcn.140066f78
mov edx, edi
mov rcx, r14
mov qword [rsp + rbx + 0xb8], rax
call fcn.140066f78
lea edx, [rdi + 0xa]
mov rcx, r14
mov qword [rsp + rbx + 0x98], rax
call fcn.140066f78
lea edx, [rdi + 0x14]
mov rcx, r14
mov qword [rsp + rbx + 0xd8], rax
call fcn.140066f78
lea edx, [rdi + 0x1e]
mov rcx, r14
mov qword [rsp + rbx + 0x58], rax
call fcn.140066f78
add rbx, 8
add edi, 1
cmp rbx, 0x20
mov qword [rsp + rbx + 0x70], rax
jl 0x1400522ba
mov rbx, r13
mov edi, 0xff
lea rcx, [rsp + 0xd00]
mov r8d, edi
mov rdx, r12
mov word [rsp + 0x100], r13w
mov word [rsp + 0x300], r13w
mov word [rsp + 0x500], r13w
mov word [rsp + 0x700], r13w
mov word [rsp + 0x900], r13w
mov word [rsp + 0xb00], r13w
mov word [rsp + 0xd00], r13w
mov dword [rsp + 0xf00], r13d
mov dword [rsp + 0xf04], 0x7d2
call fcn.140062b74
mov rdx, qword [rsp + rbx + 0x98]
lea r8, [rsp + 0x900]
mov r9d, edi
mov rcx, rbp
call fcn.14004f4ec
mov rdx, qword [rsp + rbx + 0xd8]
lea r8, [rsp + 0x700]
mov r9d, edi
mov rcx, rbp
call fcn.14004f4ec
lea r8, [rsp + 0x100]
lea rdx, str.Account_Name
mov r9d, edi
mov rcx, rbp
call fcn.14004f4ec
lea r8, [rsp + 0x300]
lea rdx, str.Display_Name
mov r9d, edi
mov rcx, rbp
call fcn.14004f4ec
lea r8, [rsp + 0x500]
lea rdx, str.Email
mov r9d, edi
mov rcx, rbp
call fcn.14004f4ec
lea rcx, [rsp + 0xf11]
xor edx, edx
mov r8d, 0xfff
mov byte [rsp + 0xf10], r13b
call sub.msvcrt.dll_memset
mov rdx, qword [rsp + rbx + 0xb8]
lea rax, [rsp + 0x1f58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf10]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x1f58], 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x1f58]
cmp eax, 0x20
jb 0x140052507
add eax, 0xffffffff
xor ecx, ecx
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0xf11]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x40], r13d
call fcn.14006d694
cmp eax, r13d
je 0x1400524fd
mov rdx, qword [rsp + 0x48]
cmp rdx, r13
je 0x1400524fd
lea rcx, [rsp + 0xb00]
mov r8d, edi
call fcn.140062b74
lea rcx, [rsp + 0x58]
call fcn.14006d5b4
cmp word [rsp + 0x900], r13w
je 0x140052537
cmp word [rsp + 0xb00], r13w
je 0x140052537
mov eax, dword [rsi + 8]
lea rdx, [rsp + 0x100]
mov rcx, rsi
mov dword [rsp + 0xf04], eax
mov rax, qword [rsi]
call qword [rax]
add rbx, 8
cmp rbx, 0x20
jl 0x140052327
lea r11, [rsp + 0x1f10]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret