joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401820
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00408064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40193a
mov rax, qword [0x00408068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40186e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401920
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401852
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401972
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00408068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00408068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401955
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401919
sub eax, 0x40
and eax, 0xffffffbf
je 0x401919
mov r9, rbp
add r9, qword [0x00408068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401941
add dword [0x00408064], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40187b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00408068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402550
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402560
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402570
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4025b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4025a8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4025b3
add rax, 0x28
cmp rax, r9
jne 0x402594
xor eax, eax
repz ret

Function at 0x402660
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00405380]
cmp word [rbx], 0x5a4d
je 0x402680
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402674
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x4028d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004089c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004089a0]
test rbx, rbx
je 0x402924
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40291b
test rsi, rsi
je 0x40291b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402900
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004089c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x403060
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rsi
push rbx
sub rsp, 0x4f8
mov rbx, 0xffffffffffffffff
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4030a8
mov rcx, rsi
mov dword [rsp + 0x50], 0x100003
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rsi
test eax, eax
cmovne rbx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, rbx
add rsp, 0x4f8
pop rbx
pop rsi
ret
Function at 0x403130
Capabilities:
Create thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov ebp, dword [rsp + 0xb0]
mov rbx, rcx
mov r14, rdx
mov rsi, r8
mov r13, r9
cmp ebp, 0x10000
ja 0x4032c0
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x40318c
mov rcx, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
mov rcx, qword [rbx + 0x10]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rbx + 8]
call rdi
mov rcx, qword [rbx]
test rcx, rcx
je 0x40319a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r12d, r12d
test ebp, ebp
jne 0x4031b3
mov eax, r12d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdi, [rbx + 8]
mov r8, rsi
xor edx, edx
mov rcx, r14
shr rsi, 1
call sym.memset
and rdi, 0xfffffffffffffff8
mov rcx, rbx
xor eax, eax
sub rcx, rdi
mov qword [rbx], 0
mov qword [rbx + 0x30], 0
add ecx, 0x38
xor edx, edx
shr ecx, 3
rep stosq qword [rdi], rax
mov rax, rsi
mov ecx, ebp
mov dword [0x00408a50], ebp
shl rax, 0x10
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x00408a38], r14
mov qword [0x00408a40], r13
div rcx
lea rax, [r13 + rax*2]
mov qword [0x00408a48], rax
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4032e0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x4032f7
lea rax, [rsp + 0x4c]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [dbg.profthr_func]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 8], rax
je 0x40331d
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x4031a1
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 0x16
jmp 0x4031a1
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 3
jmp 0x4031a1
xor ecx, ecx
mov r12d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xb
jmp 0x4031a1
mov rcx, qword [rbx]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, 0xffffffff
call rsi
mov rcx, qword [rbx + 0x10]
call rsi
mov qword [rbx], 0
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xb
jmp 0x4031a1
Function at 0x1400012ac
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x17c0
call fcn.140037150
sub rsp, rax
mov rax, qword [0x140049e00]
xor rax, rsp
mov qword [rsp + 0x17b0], rax
xor edi, edi
mov bpl, r9b
mov rsi, r8
mov r13, rdx
mov r12, rcx
test r8, r8
jle 0x140001395
mov r14d, 0x1770
mov r8d, esi
mov rax, rsi
lea r9, [rsp + 0x30]
sub r8d, edi
sub rax, rdi
lea rdx, [rsp + 0x40]
cmp rax, r14
mov rcx, r12
cmovg r8d, r14d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400013db
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1400013db
test bpl, bpl
je 0x140001350
test ecx, ecx
je 0x140001350
lea rax, [rsp + 0x40]
mov rdx, rcx
xor byte [rax], 0x88
inc rax
sub rdx, 1
jne 0x140001344
xor ebx, ebx
test ecx, ecx
je 0x140001387
and qword [rsp + 0x20], 0
sub ecx, ebx
movsxd rax, ebx
mov r8d, ecx
lea rdx, [rsp + rax + 0x40]
lea r9, [rsp + 0x34]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400013b9
add ebx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
cmp ebx, ecx
jb 0x140001356
mov eax, ecx
add rdi, rax
cmp rdi, rsi
jl 0x1400012f3
xor eax, eax
mov rcx, qword [rsp + 0x17b0]
xor rcx, rsp
call fcn.14001ae80
add rsp, 0x17c0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x30]
lea rcx, str.WriteFile_failed__d__d
sub edx, ebx
mov r8d, eax
call fcn.140013d54
mov eax, 2
jmp 0x140001397
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x30]
lea rcx, str.ReadFile_failed__d__d__I64d
mov r8d, eax
mov r9, rdi
call fcn.140013d54
mov eax, 1
jmp 0x140001397
Function at 0x140004924
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
mov eax, 0x17a0
call fcn.140037150
sub rsp, rax
mov rax, qword [0x140049e00]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov bl, cl
lea rcx, str.extracting_files
call fcn.140013de8
mov ecx, 0x7d2
call fcn.14000469c
lea rcx, [0x14003a300]
mov edx, eax
mov edi, eax
call fcn.140013de8
xor r14d, r14d
cmp edi, r14d
jne 0x1400049a5
movzx eax, byte [0x140057460]
cmp bl, r14b
cmovne eax, r14d
mov byte [0x140057460], al
jmp 0x140004b21
cmp bl, r14b
je 0x1400049af
call fcn.140016874
call fcn.140001054
mov edx, dword [0x14004b704]
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x7d3
call fcn.1400045d4
lea rdx, [0x14003a2fc]
mov r12d, r14d
mov rcx, rax
mov rbp, rax
call fcn.14001b9cc
cmp edi, r14d
mov rbx, rax
jle 0x140004aea
cmp rbx, r14
je 0x140004aea
mov rcx, rbx
call fcn.14001a6c0
cmp rax, r14
je 0x140004aea
lea r8, [0x140057460]
lea rdx, [0x14003a2f4]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.14001bb88
mov edx, 0x5c
mov rcx, rbx
call fcn.14001a694
mov r13, rax
cmp rax, r14
je 0x140004a9a
lea rcx, [0x140057460]
call fcn.14001a6c0
sub r13, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + r13 + 0x21]
mov byte [rcx + rax], r14b
lea rcx, str.creating_directory__S
call fcn.140013de8
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r14d
jne 0x140004a9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004a9a
lea rdx, [rsp + 0x20]
lea rcx, str.failed_to_create_directory__S
call fcn.140013d54
lea r8, [0x140057460]
lea rdx, [0x14003a2f4]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.14001bb88
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002ccc
mov ebx, eax
cmp eax, r14d
jne 0x140004b55
lea rdx, [0x14003a2fc]
xor ecx, ecx
inc r12d
call fcn.14001b9cc
cmp r12d, edi
mov rbx, rax
jl 0x1400049f7
mov rcx, rbp
call fcn.14001aaec
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
mov dword [0x14004b700], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.extracting_files_done
call fcn.140013de8
xor eax, eax
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.14001ae80
lea r11, [rsp + 0x17a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
lea rdx, [rsp + 0x20]
lea rcx, str.Failed_to_extract__S
call fcn.140013d54
mov rcx, rbp
call fcn.14001aaec
mov eax, ebx
jmp 0x140004b23

Function at 0x140004df8
Capabilities:
Delete directory
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x140058bf0], 0
mov ebx, ecx
jne 0x140004e35
lea rcx, [0x140057460]
call fcn.14001a6c0
test rax, rax
je 0x140004e35
lea rcx, [0x140057460]
mov dl, 1
call fcn.140004fac
lea rcx, [0x140057460]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140004fac
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x3050
call fcn.140037150
sub rsp, rax
mov rax, qword [0x140049e00]
xor rax, rsp
mov qword [rsp + 0x3040], rax
mov sil, dl
lea rdx, [0x14003a4d0]
mov r8d, 1
mov rbx, rcx
call fcn.14001bad0
test eax, eax
je 0x140005191
mov rcx, rbx
call fcn.14001a6c0
test rax, rax
je 0x140005191
lea rcx, [0x14003a4b8]
mov rdx, rbx
call fcn.140013de8
mov rcx, rbx
call fcn.14001a6c0
test rax, rax
je 0x140005191
lea rcx, [rsp + 0x18d0]
mov rdx, rbx
call fcn.14001ad30
lea rcx, [rsp + 0x18d0]
call fcn.14001a6c0
cmp byte [rsp + rax + 0x18d0], 0x5c
je 0x140005062
lea rdx, [0x14003a4b4]
lea rcx, [rsp + 0x18d0]
call fcn.14001ac90
lea rdx, [0x14003a4b0]
lea rcx, [rsp + 0x18d0]
call fcn.14001ac90
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x18d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005191
lea rdx, [0x14003a4d0]
lea rcx, [rsp + 0x4c]
call fcn.14001c700
test eax, eax
je 0x140005172
lea rdx, [0x14003a4ac]
lea rcx, [rsp + 0x4c]
call fcn.14001c700
test eax, eax
je 0x140005172
lea rcx, [rsp + 0x160]
mov rdx, rbx
call fcn.14001ad30
lea rcx, [rsp + 0x160]
call fcn.14001a6c0
cmp byte [rsp + rax + 0x160], 0x5c
je 0x140005103
lea rdx, [0x14003a4b4]
lea rcx, [rsp + 0x160]
call fcn.14001ac90
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x160]
call fcn.14001ac90
test byte [rsp + 0x20], 0x10
lea rdx, [rsp + 0x160]
jbe 0x140005158
lea rcx, str.attempting_to_remove__S___d_
movzx r8d, sil
call fcn.140013de8
test sil, sil
je 0x140005148
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.140004fac
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x140005172
lea rcx, str.attempting_to_delete__S
call fcn.140013de8
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140005096
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x3040]
xor rcx, rsp
call fcn.14001ae80
lea r11, [rsp + 0x3050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140005274
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000529f
cmp dword [rsp + 0x48], 8
jae 0x1400052bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.140013de8
lea rcx, str.Internal_Error:_readLong
call fcn.140004f70
mov rax, qword [rsp + 0x50]
add rsp, 0x38
ret
Function at 0x1400052cc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400052f7
cmp dword [rsp + 0x48], 4
jae 0x14000531c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x48]
lea rcx, str.error__d__d_n
mov edx, eax
call fcn.140013de8
lea rcx, str.Internal_Error:_readInt
call fcn.140004f70
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140005328
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005353
cmp dword [rsp + 0x50], 2
jae 0x140005373
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.140013de8
lea rcx, str.Internal_Error:_readShort
call fcn.140004f70
mov ax, word [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140005380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
call fcn.1400052cc
movsxd rdi, eax
lea edx, [rdi + 1]
movsxd rcx, edx
call fcn.140019b3c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rdx, rax
mov r8d, edi
mov rcx, rbx
mov rsi, rax
mov byte [rdi + rax], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400053d0
cmp dword [rsp + 0x48], edi
jae 0x1400053dc
lea rcx, str.Internal_Error:_readString
call fcn.140004f70
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400053f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.1400052cc
mov rcx, 0xffffffffffffffff
mov ebp, eax
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
mov eax, 2
lea edx, [rbx + 1]
movsxd r8, edx
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.140019b3c
mov rcx, rbx
xor ebx, ebx
mov word [rax + rcx*2], bx
lea r9, [rsp + 0x48]
mov r8d, ebp
mov rcx, rdi
mov rdx, rax
mov rsi, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x140005466
cmp dword [rsp + 0x48], ebp
jae 0x140005472
lea rcx, str.Internal_Error:_readWString
call fcn.140004f70
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140006e84
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x17a0
call fcn.140037150
sub rsp, rax
mov rax, qword [0x140049e00]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
call fcn.140006db4
lea rdx, [rsp + 0x20]
lea rcx, str.tempPath_is__S
call fcn.140013de8
lea rdx, [0x14003ab40]
lea rcx, [rsp + 0x20]
mov r9, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x140006f5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetTempFileName_failed__last_error__d_
mov edx, eax
call fcn.140013de8
lea rcx, [rsp + 0x20]
call fcn.14001a6c0
test eax, eax
jle 0x140006f26
cdqe
cmp byte [rsp + rax + 0x1f], 0x5c
je 0x140006f26
cmp byte [rsp + rax + 0x1f], 0x2f
je 0x140006f26
lea rdx, [0x14003a4b4]
lea rcx, [rsp + 0x20]
call fcn.14001ac90
xor ecx, ecx
call fcn.14001c664
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, ebx
mov ecx, eax
call fcn.14001cc60
call fcn.14001cc78
lea r8, [rsp + 0x20]
lea rdx, str._se4j_d
mov r9d, eax
mov rcx, rdi
call fcn.14001bb88
lea rcx, str.tempFile_is__S
mov rdx, rdi
call fcn.140013de8
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.14001ae80
mov rbx, qword [rsp + 0x17b8]
add rsp, 0x17a0
pop rdi
ret
Function at 0x14000790c
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0x1960
call fcn.140037150
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1998], rbx
mov rax, qword [0x140049e00]
xor rax, rsp
mov qword [rsp + 0x1950], rax
mov rbp, r8
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x1e0]
call fcn.14001ad30
lea rdx, [0x14003ac28]
lea rcx, [rsp + 0x1e0]
call fcn.14001ac90
cmp byte [rbx], 0x2e
je 0x140007983
lea rdx, [0x14003a4d0]
lea rcx, [rsp + 0x1e0]
call fcn.14001ac90
mov rdx, rbx
lea rcx, [rsp + 0x1e0]
call fcn.14001ac90
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400079b9
xor eax, eax
jmp 0x140007b66
mov ecx, 8
call fcn.14001b078
test rax, rax
je 0x1400079d2
lea rcx, [rsp + 0x20]
mov qword [rax], rcx
jmp 0x1400079d4
xor eax, eax
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.1400072b4
mov qword [rsp + 0x48], rax
and qword [rsp + 0x50], 0
mov ecx, 0x1770
call fcn.14001ce4c
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0xcc]
mov rcx, rax
call fcn.14001ad30
mov rdi, qword [rsp + 0x48]
lea r9, [rsp + 0x60]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400072ec
mov rbx, rax
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1400077a8
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
sete al
test al, al
je 0x1400079ee
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x50]
movsxd rcx, esi
imul rcx, rcx, 0x1770
call fcn.14001ce4c
mov qword [rbp], rax
cmp qword [rsp + 0x50], 0
jbe 0x140007b13
xor ebx, ebx
mov rax, qword [rsp + 0x48]
mov rdi, qword [rax]
mov r11, qword [rsp + 0x20]
test r11, r11
jne 0x140007aaa
call fcn.14001b058
xor r11d, r11d
jmp 0x140007aad
mov r11, qword [r11]
cmp rdi, qword [r11 + 0x28]
jne 0x140007ab8
call fcn.14001b058
mov rcx, qword [rbp]
mov rax, qword [rdi + 0x10]
mov qword [rbx + rcx], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x80], xmm0
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x20]
call fcn.1400076f0
add rbx, 8
cmp qword [rsp + 0x50], 0
ja 0x140007a8e
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rax
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
cmp rdx, rcx
je 0x140007b4f
mov rbx, qword [rdx]
mov rcx, rdx
call fcn.14001aaec
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rcx
jne 0x140007b37
call fcn.14001aaec
and qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x20]
call fcn.14001aaec
mov eax, esi
mov rcx, qword [rsp + 0x1950]
xor rcx, rsp
call fcn.14001ae80
mov rbx, qword [rsp + 0x1998]
add rsp, 0x1960
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c630
Capabilities:
Set registry value

Disassembly:
push rbx
mov eax, 0x17e0
call fcn.140037150
sub rsp, rax
mov rax, qword [0x140049e00]
xor rax, rsp
mov qword [rsp + 0x17d0], rax
mov qword [rsp + 0x58], rdx
mov rbx, r8
mov rdx, rcx
lea rcx, [rsp + 0x60]
lea r8, str.SOFTWAREej_technologiesexe4jjvms_
call fcn.14000c5c4
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000c710
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea rdx, str.LastWriteTime
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rbx
call fcn.14001a6c0
mov rcx, qword [rsp + 0x50]
lea rdx, str.Version
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x17d0]
xor rcx, rsp
call fcn.14001ae80
add rsp, 0x17e0
pop rbx
ret