joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400604c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rdi, rdx
mov esi, ecx
mov r8d, ecx
xor r15d, r15d
mov word [rdx], r15w
mov ecx, 0x410
xor edx, edx
movzx ebx, r9b
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov r14, rax
test rax, rax
jne 0x14006051a
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov r14, rax
test rax, rax
je 0x14006066c
xor edx, edx
mov qword [rsp + 0x250], rbp
mov r9d, 0x104
mov r8, rdi
mov rcx, r14
test bl, bl
je 0x14006053c
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x140060542
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebp, eax
test eax, eax
jne 0x140060659
mov rax, qword [0x1400eaee8]
test rax, rax
je 0x140060659
mov r8d, 0x104
mov rdx, rdi
mov rcx, r14
call rax
mov ebp, eax
test eax, eax
je 0x140060659
test bl, bl
je 0x1400605b0
mov edx, 0x5c
mov rcx, rdi
call fcn.1400aa0cc
test rax, rax
je 0x140060659
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140060592
add r8, r8
lea rdx, [rax + 2]
mov rcx, rdi
call fcn.1400a9a00
jmp 0x140060659
mov eax, 0x41
mov dword [rsp + 0x25a], 0x3a
mov word [rsp + 0x258], ax
nop dword [rax + rax]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x258]
call qword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
mov ebx, eax
cmp eax, 2
jbe 0x140060612
add ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
mov r8d, ebx
mov rdx, rdi
call fcn.1400b2fe0
test eax, eax
jne 0x140060612
cmp word [rdi + rbx*2], 0x5c
lea rdx, [rdi + rbx*2]
je 0x14006062d
movzx eax, word [rsp + 0x258]
inc ax
mov word [rsp + 0x258], ax
cmp ax, 0x5a
jbe 0x1400605d0
jmp 0x140060659
movzx eax, word [rsp + 0x258]
lea rcx, [rdi + 4]
mov word [rdi], ax
sub ebp, ebx
movzx eax, word [rsp + 0x25a]
mov word [rdi + 2], ax
lea r8d, [rbp + 1]
add r8, r8
call fcn.1400a9a00
add ebp, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebp
mov rbp, qword [rsp + 0x250]
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140064530
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x280
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x140064609
cmp word [rdx], 0
je 0x140064609
lea r9, [rsp + 0x298]
mov edx, 0x104
lea r8, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rax, r8
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140064580
xor ecx, ecx
test rax, rax
je 0x14006459e
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x14006459e
mov word [rsp + rax*2 + 0x6e], cx
lea rax, [rsp + 0x70]
cmp word [rax + r8*2 + 2], cx
lea r8, [r8 + 1]
jne 0x1400645a3
lea rax, [rsp + 0x70]
mov word [rsp + r8*2 + 0x72], cx
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
mov eax, 0x4054
mov dword [rsp + 0x54], ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x30]
mov word [rsp + 0x50], ax
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x38], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
mov rcx, rbx
setne dl
call fcn.140038ea0
add rsp, 0x280
pop rbx
ret
mov rax, qword [0x140100a58]
lea rdx, [0x1400e25dc]
test byte [rax + 0x140], 1
jne 0x140064641
mov rcx, qword [0x140104d40]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14008f120
add rsp, 0x280
pop rbx
ret
lea r9, [0x1400cef3c]
xor r8d, r8d
call fcn.140038dd0
add rsp, 0x280
pop rbx
ret
Function at 0x140064660
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
sub rsp, 0x148
mov rbx, rdx
mov byte [rsp + 0x20], 1
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x1401070a0]
xor r9d, r9d
or r8, 0xffffffffffffffff
call fcn.14008f120
test rbx, rbx
je 0x1400647f4
cmp word [rbx], 0
je 0x1400647f4
lea rdx, [rsp + 0x168]
mov qword [rsp + 0x140], rsi
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x1400646e8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [0x140100a58]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rdi
call fcn.140038ea0
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x160], rbp
call fcn.1400aba38
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400647d2
lea r9, [rsp + 0x170]
mov rcx, rbp
lea r8, [rsp + 0x178]
lea rdx, [0x1400e3888]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400647d2
mov rax, qword [rsp + 0x178]
lea r8, str._u._u._u._u
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 8]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
shr edx, 0x10
mov dword [rsp + 0x28], edx
mov edx, 0x80
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.14008b9a0
mov rcx, rbp
call fcn.1400ad530
mov rax, qword [0x140100a58]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140038ea0
mov rcx, qword [0x1401070a0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008f120
mov rbp, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [0x140100a58]
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.1400ad530
mov rcx, rdi
call fcn.14003c5b0
jmp 0x1400647b8
mov rax, qword [0x140100a58]
mov dl, 1
mov rcx, rdi
mov dword [rax + 0x40], 0x57
call fcn.140038ea0
add rsp, 0x148
pop rdi
pop rbx
ret
Function at 0x140064ae0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub rsp, 0x278
test dl, dl
jne 0x140064afe
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x278
ret
mov qword [rsp + 0x280], rbx
lea r9, [rsp + 0x290]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x270], rdi
mov edx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140064b32
xor edi, edi
test rax, rax
je 0x140064b50
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x140064b50
mov word [rsp + rax*2 + 0x5e], di
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064bc5
test al, 0x10
je 0x140064bc5
lea rax, [rsp + 0x60]
nop dword [rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x140064b70
lea rax, [rsp + 0x60]
mov word [rsp + rbx*2 + 0x62], di
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov eax, 0x614
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
mov word [rsp + 0x40], ax
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
jmp 0x140064bc7
xor al, al
mov rbx, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x270]
add rsp, 0x278
ret
Function at 0x1400652c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400a9e38
test rax, rax
jne 0x140065303
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400a9e38
test rax, rax
jne 0x140065303
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x270
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140065322
xor al, al
add rsp, 0x270
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
add rsp, 0x270
pop rbx
ret

Function at 0x140065340
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14006536d
xor al, al
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x140065365
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add rsp, 0x40
pop rbx
ret

Function at 0x1400653e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14006545d
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x14006545d
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14006545d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
add rsp, 0x40
pop rbx
ret
Function at 0x1400655c0
Capabilities:
Enumerate processes

Disassembly:
push r14
push r15
sub rsp, 0xab8
xor edx, edx
mov dword [rsp + 0x30], 0x238
mov r15, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov r14, rax
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
mov rdx, r15
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x140065607
cmp r8w, 9
jne 0x14006560d
add rdx, 2
jmp 0x1400655f5
movzx eax, word [rdx]
mov qword [rsp + 0xad0], rbx
mov qword [rsp + 0xad8], rbp
mov qword [rsp + 0xae0], rsi
mov qword [rsp + 0xab0], rdi
test ax, ax
je 0x1400656fe
xor esi, esi
cmp ax, 0x2d
je 0x140065724
cmp ax, 0x2b
lea rdi, [rdx + 2]
cmovne rdi, rdx
cmp word [rdi], 0x30
jne 0x140065679
movzx eax, word [rdi + 2]
mov ecx, 0xffdf
sub ax, 0x58
test cx, ax
jne 0x140065679
movzx ecx, word [rdi + 4]
call fcn.1400aed74
lea ebp, [rsi + 1]
test eax, eax
jne 0x14006567b
mov ebp, esi
test ebp, ebp
lea rbx, [rdi + 4]
mov ecx, esi
cmove rbx, rdi
movzx edi, word [rbx]
cmp edi, 0x20
je 0x1400656e0
nop
cmp edi, 9
je 0x1400656e0
test edi, edi
je 0x1400656fa
cmp edi, 0x2e
je 0x140065724
test ebp, ebp
je 0x1400656c3
movzx ecx, di
call fcn.1400af294
test eax, eax
mov ecx, esi
sete cl
test ecx, ecx
je 0x1400656cb
movzx ecx, di
call fcn.14000ae80
jmp 0x140065724
lea eax, [rdi - 0x30]
cmp eax, 9
ja 0x1400656b9
movzx edi, word [rbx + 2]
add rbx, 2
mov ecx, 1
cmp edi, 0x20
jne 0x140065690
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x1400656ef
cmp ax, 9
jne 0x1400656f5
add rbx, 2
jmp 0x1400656e0
cmp word [rbx], si
jne 0x140065724
test ecx, ecx
je 0x140065724
mov rcx, r15
call fcn.140010bd0
mov rcx, r15
test al, al
je 0x14006571d
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400aee04
mov rsi, rax
jmp 0x140065724
call fcn.1400ae994
mov esi, eax
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
mov rdi, qword [rsp + 0xab0]
mov rbp, qword [rsp + 0xad8]
mov rbx, qword [rsp + 0xad0]
test eax, eax
je 0x1400657fc
test esi, esi
je 0x140065760
cmp esi, dword [rsp + 0x38]
je 0x14006581b
lea rax, [rsp + 0x480]
lea r9, [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x690]
lea rdx, [rsp + 0x8a0]
lea rcx, [rsp + 0x5c]
call fcn.1400b3b14
lea rax, [rsp + 0x270]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400657a0
lea r8, [rsp + 0x480]
xor edx, edx
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x1400657c0
mov rdx, r15
lea rcx, [rsp + 0x270]
call fcn.1400ab8c0
mov rcx, r14
test eax, eax
je 0x14006583a
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x140065752
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0xae0]
add rsp, 0xab8
pop r15
pop r14
ret
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
mov rsi, qword [rsp + 0xae0]
add rsp, 0xab8
pop r15
pop r14
ret
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rsp + 0x38]
mov rsi, qword [rsp + 0xae0]
add rsp, 0xab8
pop r15
pop r14
ret
Function at 0x1400866d0
Capabilities:
Set current directory

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov esi, r9d
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
mov edi, 1
xor r15d, r15d
mov qword [r11 + 8], r15
mov qword [r11 - 0x40], rcx
mov rax, qword [rcx + 8]
mov qword [r11 - 0x38], rax
mov r10d, r15d
mov dword [r11 - 0x30], r15d
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x5c], eax
lea rcx, [r11 - 0x40]
mov qword [rbx + 8], rcx
test eax, eax
jle 0x140086877
lea r13, [0x140104bd0]
lea r12, [0x1400cef3c]
cmp r10d, esi
jl 0x14008680f
mov r8, qword [0x140100a58]
mov rcx, r8
mov rax, r13
mov edx, 2
nop
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x140086760
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
mov dword [r8 + 0x3c], r15d
mov qword [0x140107e68], r15
cmp dword [0x140104d68], edx
je 0x14008680a
mov rax, qword [0x140102ef0]
mov rcx, r12
test rax, rax
je 0x140086804
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov r10d, dword [rsp + 0x58]
movsxd rcx, r10d
add rcx, rcx
mov rax, qword [rbx]
mov rcx, qword [rax + rcx*8]
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, r14
lea r8, [0x1400cefc0]
mov rdx, rcx
call fcn.140082b00
test eax, eax
je 0x140086874
cmp qword [rsp + 0x90], 0
jne 0x14008686d
mov r10d, dword [rsp + 0x58]
inc r10d
mov dword [rsp + 0x58], r10d
cmp r10d, dword [rsp + 0x5c]
jl 0x140086744
jmp 0x140086877
mov edi, 3
jmp 0x140086877
mov edi, r15d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rdx
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140087cc0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x30030
call fcn.1400bfa50
sub rsp, rax
mov rbx, qword [rsp + 0x30060]
mov rsi, r9
mov rdi, r8
mov rax, rdx
test rbx, rbx
je 0x140087cf9
cmp word [rbx], 0
jne 0x140087d00
lea rbx, str.ERROR
xor ecx, ecx
lea r9, [rsp + 0x30060]
mov word [rsp + 0x10030], cx
lea r8, [rsp + 0x30]
mov word [rsp + 0x30040], cx
mov edx, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
cmp word [rsi], 0
je 0x140087d9e
cmp word [rdi], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30040]
cmovne rcx, rdi
mov dword [rsp + 0x20], 0xffff
lea r9, [rsp + 0x10030]
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov rcx, qword [0x1401070a0]
lea rdx, [rsp + 0x10030]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008f120
lea r11, [rsp + 0x30030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp word [rdi], 0
je 0x140087dc2
lea r9, [rsp + 0x30]
mov r8d, 0xffff
lea rdx, [rsp + 0x10030]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionW]
jmp 0x140087dda
lea r8, [rsp + 0x30]
mov edx, 0xffff
lea rcx, [rsp + 0x10030]
call qword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x140087d69
lea rax, [rsp + 0x10030]
mov ecx, 0xa
nop dword [rax + rax]
cmp word [rax], 0
jne 0x140087e04
cmp word [rax + 2], 0
je 0x140087d69
mov word [rax], cx
add rax, 2
jmp 0x140087df0

Function at 0x140087e10
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov ebx, 1
call fcn.14008c900
test al, al
jne 0x140087f2a
mov qword [rsp + 0x78], r15
xor r9d, r9d
xor r15d, r15d
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov edx, 0x40000000
mov dword [rsp + 0x28], r15d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140087f1b
mov qword [rsp + 0x60], rbp
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x68], r14
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], r15w
jne 0x140087e80
mov eax, ecx
lea ebp, [rcx*2 + 2]
lea r14, [rdi + rax*2]
mov qword [rsp + 0x20], r15
mov eax, 0x5d
lea r9, [rsp + 0x70]
lea rdx, [0x1400ed1d8]
mov word [r14], ax
mov rcx, rsi
lea r8d, [rax - 0x59]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x140087eec
cmp dword [rsp + 0x70], 4
jne 0x140087eec
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x140087eec
cmp dword [rsp + 0x70], ebp
je 0x140087eef
mov ebx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0x60]
test eax, eax
mov word [r14], r15w
mov r14, qword [rsp + 0x68]
cmove ebx, r15d
mov r15, qword [rsp + 0x78]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
mov r15, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140088a20
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x140088b5c
test r8, r8
je 0x140088a53
cmp word [r8], 0
jne 0x140088a5c
test rsi, rsi
je 0x140088b5c
mov rax, qword [0x140100a58]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x58]
or r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140088b4d
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x140088b37
call fcn.1400888f0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140088b4d
mov eax, dword [0x140109c40]
test al, 1
jne 0x140088af8
or eax, 1
lea rcx, str.advapi32
mov dword [0x140109c40], eax
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RegDeleteKeyExW
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov r10, rax
mov qword [0x140109c48], rax
jmp 0x140088aff
mov r10, qword [0x140109c48]
mov rax, qword [0x140100a58]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x140088b27
test r10, r10
je 0x140088b27
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call r10
mov ebx, eax
jmp 0x140088b4d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x140088b4d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x140088b61
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
jmp 0x140088b63
mov ebx, 0x57
mov ecx, ebx
mov rax, qword [0x140100a58]
test ebx, ebx
setne dl
mov dword [rax + 0x40], ecx
mov rcx, r14
call fcn.140038ea0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140089270
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
xor edi, edi
mov rdx, qword [rcx + 0x30]
mov rbx, rcx
test rdx, rdx
je 0x1400892ac
sub rdx, qword [rcx + 0x38]
lea r8d, [rdi + 1]
mov eax, dword [rcx + 0xc]
mov r9, qword [rcx]
sub rdx, rax
call qword [r9 + 0x28]
mov qword [rbx + 0x30], rdi
mov dword [rbx + 0xc], edi
mov r8d, dword [rbx + 0xc]
test r8d, r8d
je 0x1400892cb
cmp qword [rbx + 0x30], rdi
jne 0x1400892cb
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [rbx + 0x38]
call qword [rax + 0x20]
mov dword [rbx + 0xc], edi
mov rax, qword [rbx]
mov rcx, rbx
mov word [rbx + 0x2c], di
call qword [rax + 0x30]
mov r9, qword [rbx]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov rdi, rax
call qword [r9 + 0x28]
test al, al
je 0x14008932c
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x14008932c
mov rax, qword [rbx]
cmp rsi, rdi
mov rcx, rbx
cmovl rdi, rsi
xor r8d, r8d
mov rdx, rdi
call qword [rax + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + gethostname]
mov rbx, qword [rsp + 0x30]
or rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140089ef0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x14008c900
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14008c9e6
cmp word [rcx], 0
je 0x14008c9e6
mov r8d, 4
lea rdx, [0x1400ed4c8]
call fcn.1400b2fe0
mov r8, rbx
test eax, eax
jne 0x14008c943
lea r8, [rbx + 8]
test r8, r8
je 0x14008c980
movzx edx, word [r8]
test dx, dx
je 0x14008c980
lea rcx, [0x1400ea828]
mov eax, 0x3f
nop dword [rax]
cmp dx, ax
je 0x14008c9ab
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14008c960
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x14008c951
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
test rdi, rdi
je 0x14008c992
mov dword [rdi], eax
xor eax, eax
cmp ecx, 0xffffffff
setne al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14008c9e6
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_FindClose]
test rdi, rdi
je 0x14008c9d3
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x14008d1b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400bfa50
sub rsp, rax
mov rdi, rdx
mov r8d, 0x7fff
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14008d204
lea r8d, [rax + 1]
mov rcx, rdi
add r8, r8
lea rdx, [rsp + 0x20]
call fcn.1400a9a00
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
xor eax, eax
mov word [rdi], ax
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret