joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b550
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
cmp dword [rcx + 0x20], esi
je 0x14002b6c5
mov dword [rcx + 0x20], esi
mov ebx, esi
mov qword [rsp + 0x68], rbx
cmp rbx, 3
jae 0x14002b59d
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call fcn.140027910
inc rbx
jmp 0x14002b580
lea rcx, [rdi + 0x12e0]
mov edx, 1
call fcn.140041190
lea rcx, [rdi + 0x1348]
mov edx, 1
call fcn.140041190
mov rdx, qword [rdi + 0x1308]
test rdx, rdx
je 0x14002b64f
lea rax, [0x14013a160]
cmp rax, rdx
je 0x14002b64f
lea rcx, [rsp + 0x30]
call fcn.140040cf0
nop
lea rcx, [rsp + 0x30]
call fcn.140041450
mov rbx, rax
test rax, rax
je 0x14002b60f
mov rcx, rax
call fcn.140027500
mov edx, 0x18
mov rcx, rbx
call fcn.14005f164
jmp 0x14002b5e6
xor edx, edx
mov rcx, qword [rdi + 0x1308]
call fcn.140041190
mov rbx, qword [rdi + 0x1308]
test rbx, rbx
je 0x14002b63e
mov rcx, rbx
call fcn.140040d10
mov edx, 0x28
mov rcx, rbx
call fcn.14005f164
mov qword [rdi + 0x1308], rsi
lea rcx, [rsp + 0x30]
call fcn.140040d90
cmp dword [rdi + 0x24], 0
je 0x14002b68c
mov rcx, qword [rdi + 0x12d8]
test rcx, rcx
je 0x14002b68c
mov dword [rdi + 0x24], esi
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14002b685
xor edx, edx
mov rcx, qword [rdi + 0x12d8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rdi + 0x12d8], rsi
mov rbx, qword [rdi + 0x1380]
test rbx, rbx
je 0x14002b6b4
mov rcx, rbx
call fcn.140027500
mov edx, 0x18
mov rcx, rbx
call fcn.14005f164
mov qword [rdi + 0x1380], rsi
mov rcx, rdi
call fcn.14002b7e0
mov esi, 1
mov dword [rsp + 0x20], esi
mov eax, esi
jmp 0x14002b6cd
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14002b850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, r9
mov r14d, r8d
mov r15, rdx
mov rbx, rcx
call fcn.1400278f0
nop
mov qword [rsp + 0x20], 0
mov r9, rsi
mov r8d, r14d
mov rdx, r15
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x14002b8e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x14002b8e0
mov qword [rsp + 0x20], 0
mov r9, rsi
mov r8d, r14d
mov rdx, r15
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x14002b8e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
jmp 0x14002b8f2
mov rcx, rbx
call fcn.14002b470
mov eax, edi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140032940
Capabilities:
Read file on windows

Disassembly:
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
mov r14, r8
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
test rcx, rcx
je 0x140032a27
test rdx, rdx
je 0x140032a27
test r8, r8
je 0x140032a27
mov ecx, esi
lea r12, [0x1400bec58]
mov dword [rsp + 0x34], ecx
cmp ecx, 1
jae 0x140032a25
mov ebx, ecx
shl rbx, 5
mov eax, dword [rbx + r12]
cmp dword [rdx + 8], eax
jne 0x140032a1e
mov ecx, dword [rbx + r12 + 4]
call fcn.14005f15c
mov rdi, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov r8d, dword [rbx + r12 + 4]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x140032a14
mov eax, dword [rsp + 0x78]
cmp dword [rbx + r12 + 4], eax
jne 0x140032a14
mov rcx, rdi
call qword [rbx + r12 + reloc.WS2_32.dll_htonl]
test eax, eax
je 0x140032a14
mov rdx, r14
mov rcx, rdi
call qword [rbx + r12 + 0x10]
mov esi, eax
mov dword [rsp + 0x30], eax
mov rcx, rdi
call fcn.14005f164
jmp 0x140032a25
inc ecx
jmp 0x140032992
jmp 0x140032a2f
xor eax, eax
jmp 0x140032a31
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14003c280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
sub esi, dword [rdi + 0x9c]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
add ecx, ebx
cmp edx, ecx
jb 0x14003c33c
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.140060aa0
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
lea rdx, [rdx - 2]
cmp eax, ebx
jb 0x14003c300
sub eax, ebx
jmp 0x14003c302
xor eax, eax
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x14003c2f0
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop word [rax + rax]
movzx eax, word [rcx - 2]
lea rcx, [rcx - 2]
cmp eax, ebx
jb 0x14003c330
sub eax, ebx
jmp 0x14003c332
xor eax, eax
mov word [rcx], ax
add edx, 0xffffffff
jne 0x14003c320
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x14003c3b6
mov edx, dword [rdi + 0x9c]
mov r8d, esi
mov eax, dword [rdi + 0x94]
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.14003c710
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x14003c3a0
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x14003c3b6
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x14003c2a0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140041090
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x140041111
mov edx, 8
lea r8d, [rdx + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x1400410f2
lea rcx, str.____DataEvent::_Failed_to_allocate_memory_n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rsp + 0x40], 1
lea rdx, [0x140134a90]
lea rcx, [rsp + 0x40]
call fcn.140060304
int3
mov qword [rax + 8], rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x1400c3bf8]
mov qword [rax], rdx
xor ecx, ecx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
jmp 0x140041157
mov ecx, 0x20
call fcn.14005f15c
test rax, rax
jne 0x14004113a
mov dword [rsp + 0x40], 1
lea rdx, [0x140134a90]
lea rcx, [rsp + 0x40]
call fcn.140060304
int3
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rdx, [0x1400c3bf8]
mov qword [rax], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140041750
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [rcx + 0x4c], 0x67452301
mov dword [rcx + 0x50], 0xefcdab89
xor edx, edx
mov qword [rcx], rdx
mov dword [rcx + 0x54], 0x98badcfe
mov dword [rcx + 0x58], 0x10325476
mov dword [rcx + 0x5c], 0xc3d2e1f0
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov word [rcx + 0x48], dx
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rax
mov dword [rcx + 0x70], eax
ret
Function at 0x1400433b0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x1e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x14004343b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_obtain_Windows_Directory_path___i_.
lea rcx, [rsp + 0x40]
call fcn.140001900
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140023680
lea rdx, [0x140134ae8]
lea rcx, [rsp + 0x80]
call fcn.140060304
nop
mov r8d, eax
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call fcn.140001790
mov dword [rsp + 0x20], 1
lea rdx, str.Logs
lea rcx, [rsp + 0x40]
call fcn.140001750
nop
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001e60
nop
lea rcx, [rsp + 0x40]
call fcn.140002ff0
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000bd90
nop
lea rcx, [rsp + 0x60]
call fcn.14000c840
test al, al
jne 0x1400434a6
lea rcx, [rsp + 0x60]
call fcn.14000c830
lea rdx, str._szalocx.log
lea rcx, [rsp + 0x40]
call fcn.140001750
nop
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001e60
nop
lea rcx, [rsp + 0x40]
call fcn.140002ff0
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
call fcn.140002ff0
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x1e0
pop rbx
ret
Function at 0x140049190
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x370
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rdi, rcx
lea rdx, [rsp + 0x250]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140060ef0
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x104
call fcn.140060ef0
lea rdx, [rsp + 0x30]
mov rcx, rdi
sub rdx, rdi
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140049200
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.140061300
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x30]
test rax, rax
je 0x1400492c3
mov byte [rax], 0
lea rax, [rsp + 0x140]
dec rax
nop
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140049240
xor edx, edx
nop dword [rax]
movzx ecx, byte [rbx + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140049250
lea rcx, [rsp + 0x140]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140049270
movzx eax, word [0x140104ca0]
xor edx, edx
mov word [rcx], ax
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rsp + 0x20]
call fcn.140049100
mov rbx, qword [rsp + 0x20]
cmp byte [rbx], 0
je 0x1400492c3
mov edx, 0x5c
mov rcx, rbx
call fcn.140061300
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x140049230
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x250]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14005f0d0
mov rbx, qword [rsp + 0x388]
add rsp, 0x370
pop rdi
ret

Function at 0x140049410
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.140060ef0
lea rdx, [rsp + 0x40]
mov byte [rbx], 0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor eax, eax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rax
or r9d, 0xffffffff
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], edi
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14005f0d0
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret
Function at 0x140049690
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, [0x140105e08]
mov rbx, rcx
call fcn.1400472e0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140049774
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.140060ef0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProductID
mov dword [rsp + 0x34], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140049769
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400472e0
lea r8, [0x140105e08]
mov rcx, rbx
lea rdx, [0x1400bc7a0]
call fcn.140048650
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x160
pop rbx
ret
Function at 0x140049b10
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 0x140049c00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140049d68
cmp byte [rdx], 0
je 0x140049d68
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 0x140049c78
test eax, eax
je 0x140049c80
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 0x140049d43
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 0x140049d24
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
xor r8d, r8d
call fcn.140049c00
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x140049d5e
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 0x140049cd0
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.14005f0d0
add rsp, 0x170
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140049d3b
mov eax, gethostbyname
jmp 0x140049d43
Function at 0x140049d70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1401385c0]
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 0x140049eab
lea r8, [rsp + 0x20]
mov rcx, rsi
lea edx, [rdi + 2]
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x140049e2c
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x140049e1b
lea rcx, [rsp + 0x30]
call fcn.140048e80
lea rcx, [rsp + 0x30]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140049df0
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140049e00
lea rcx, [rsp + 0x30]
call fcn.140049ee0
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 0x140049eab
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x140049e9b
lea rcx, [rsp + 0x30]
call fcn.140048e80
lea rcx, [rsp + 0x30]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140049e70
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140049e80
lea rcx, [rsp + 0x30]
call fcn.140049ee0
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.14005f0d0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140049ee0
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 [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rcx
mov esi, 1
test rcx, rcx
je 0x14004a0c6
cmp byte [rcx], 0
je 0x14004a0c6
call fcn.140049310
test eax, eax
jne 0x140049f29
mov eax, esi
jmp 0x14004a0c8
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 0x140049f40
lea rcx, [rsp + 0x270]
call fcn.140048e80
lea rcx, [rsp + 0x270]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140049f66
mov eax, dword [0x1400bc92c]
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 0x14004a0b1
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 0x140049fb3
lea rcx, [rsp + 0x160]
call fcn.140048e80
lea rcx, [rsp + 0x160]
dec rcx
inc rcx
cmp byte [rcx], 0
jne 0x140049fd8
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 0x140049ff0
test byte [rsp + 0x20], 0x10
je 0x14004a04d
movzx ecx, byte [rsp + 0x4c]
cmp cl, byte [0x1401054b4]
movzx eax, byte [rsp + 0x4d]
jne 0x14004a021
cmp al, byte [0x1401054b5]
je 0x14004a070
cmp cl, byte [0x1400bff80]
jne 0x14004a03e
cmp al, byte [0x1400bff81]
jne 0x14004a03e
movzx eax, byte [rsp + 0x4e]
cmp al, byte [0x1400bff82]
je 0x14004a070
lea rcx, [rsp + 0x160]
call fcn.140049ee0
jmp 0x14004a06e
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.140060ef0
test esi, esi
je 0x14004a096
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x14004a098
xor eax, eax
test eax, eax
jne 0x140049fb0
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 0x14004a0c8
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14005f0d0
mov rsi, qword [rsp + 0x3b8]
add rsp, 0x390
pop rdi
ret
Function at 0x14004a0f0
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 [0x1401385c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
cmp dword [0x14013a424], 0
jne 0x14004a321
cmp dword [0x14013a420], 0
jne 0x14004a321
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.14004a350
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 0x14004a197
mov r8d, esi
jmp 0x14004a1aa
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x14004a1a0
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140002d70
nop
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.wsock32.dll
lea rcx, [rbp - 0x39]
call fcn.140002ea0
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x27]
call fcn.140001800
nop
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.14000bd90
nop
lea rcx, [rbp + 0x27]
call fcn.140002ff0
lea r9, [0x14013a428]
lea r8, [0x14013a430]
lea rdx, [0x14013a420]
lea rcx, [rbp + 7]
call fcn.14000c510
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.14000bd90
nop
lea r9, [0x14013a428]
lea r8, [0x14013a430]
lea rdx, [0x14013a428]
lea rcx, [rbp - 0x19]
call fcn.14000c3e0
nop
lea rax, [rbp - 0x19]
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x19]
call fcn.140002ff0
nop
lea rax, [rbp + 7]
mov qword [rbp - 0x49], rax
lea rcx, [rbp + 7]
call fcn.140002ff0
nop
mov rax, qword [rbp - 0x21]
cmp rax, 0x10
jb 0x14004a2b6
inc rax
mov rcx, qword [rbp - 0x39]
cmp rax, 0x1000
jb 0x14004a2b1
test cl, 0x1f
je 0x14004a284
call fcn.140069e64
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14004a293
call fcn.140069e64
int3
sub rcx, rax
cmp rcx, 8
jae 0x14004a2a2
call fcn.140069e64
int3
cmp rcx, 0x27
jbe 0x14004a2ae
call fcn.140069e64
int3
mov rcx, rax
call fcn.14005ed1c
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 0x14004a30d
test bl, 0x1f
je 0x14004a2e0
call fcn.140069e64
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14004a2ef
call fcn.140069e64
int3
sub rbx, rax
cmp rbx, 8
jae 0x14004a2fe
call fcn.140069e64
int3
cmp rbx, 0x27
jbe 0x14004a30a
call fcn.140069e64
int3
mov rbx, rax
mov rcx, rbx
call fcn.14005ed1c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], rsi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14005f0d0
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