joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004210
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400042e3
cmp byte [rcx + 0x71], 0
je 0x1400042e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400042df
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400042a4
sub eax, 1
je 0x1400042a8
cmp eax, 2
jne 0x1400042df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b930
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400042d6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400042df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000428c
xor al, al
jmp 0x14000428c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b930
add rsp, 0x60
pop rbx
ret
Function at 0x14000c2a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c2f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c2f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c2f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c2f2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c2f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c2f4
xor al, al
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x180111d04], 0
jne 0x180001037
lea rbx, [0x180111c00]
mov edx, 0x104
mov dword [0x180111d04], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x180111c00]
add rsp, 0x20
pop rbx
ret

Function at 0x180001120
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x180112138], 0
jne 0x180001157
lea rbx, [0x180111f30]
mov edx, 0x104
mov dword [0x180112138], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x180111f30]
add rsp, 0x20
pop rbx
ret

Function at 0x180001310
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x180112874], 0
jne 0x180001390
mov dword [0x180112874], 1
call fcn.18002c290
lea rbx, [0x180112770]
mov edx, 0x104
mov rcx, rbx
test eax, eax
je 0x180001381
xor r8d, r8d
call fcn.180032cd0
test eax, eax
je 0x180001387
mov qword [rsp + 0x30], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov rcx, qword [0x1800c1b58]
mov rax, rbx
mov qword [rdi - 1], rcx
movzx ecx, word [0x1800c1b60]
mov word [rdi + 7], cx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x180112770]
add rsp, 0x20
pop rbx
ret

Function at 0x180001690
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1801130e8], 0
jne 0x18000171a
mov dword [0x1801130e8], 1
call fcn.18002c290
lea rbx, [0x180112ee0]
mov edx, 0x104
mov rcx, rbx
test eax, eax
je 0x18000170b
xor r8d, r8d
call fcn.18002dc70
test eax, eax
je 0x180001711
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov rcx, qword [str.SysWow64]
mov rax, rbx
mov qword [rdi - 2], rcx
mov rcx, qword [0x1800c1b98]
mov qword [rdi + 6], rcx
mov ecx, dword [0x1800c1ba0]
mov dword [rdi + 0xe], ecx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x180112ee0]
add rsp, 0x20
pop rbx
ret

Function at 0x1800035a0
Capabilities:
Query or enumerate registry value

Disassembly:
lea rdx, str.ActivePolicy
xor r8d, r8d
jmp fcn.180029040

Function at 0x1800039a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
lea rdx, str.ActivePolicy
jmp fcn.180027900
Function at 0x180005bb0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x60
xor edi, edi
mov eax, 0x2011f
mov rbx, r9
cmp dword [rsp + 0x90], edi
mov rbp, r8
mov esi, 0x2001f
cmovne esi, eax
lea rax, [r11 - 0x18]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x10]
xor r9d, r9d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rdi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov r12, rdx
mov qword [r11 - 0x10], rdi
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x50], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x180005c47
lea rax, [rsp + 0x58]
mov r9d, esi
xor r8d, r8d
mov rdx, r12
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180005c89
test rbx, rbx
je 0x180005c5e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx]
mov rcx, qword [rsp + 0x58]
mov r9d, 1
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x180005cb0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov dword [r11 + 0x20], r9d
push rdi
sub rsp, 0x60
xor ecx, ecx
mov eax, 0x2011f
mov rdi, r8
cmp dword [rsp + 0x90], ecx
mov qword [r11 - 0x10], rcx
mov dword [rsp + 0x50], ecx
mov ebx, 0x2001f
mov rsi, rdx
cmovne ebx, eax
lea rax, [r11 - 0x18]
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x10]
xor r8d, r8d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rcx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x180005d3f
lea rax, [rsp + 0x58]
mov r9d, ebx
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180005d76
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x88]
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180005d90
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
movsd qword [rsp + 0x20], xmm3
push rdi
sub rsp, 0x60
xor ecx, ecx
mov eax, 0x2011f
mov rdi, r8
cmp dword [rsp + 0x90], ecx
mov qword [r11 - 0x10], rcx
mov dword [rsp + 0x50], ecx
mov ebx, 0x2001f
mov rsi, rdx
cmovne ebx, eax
lea rax, [r11 - 0x18]
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x10]
xor r8d, r8d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rcx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x180005e21
lea rax, [rsp + 0x58]
mov r9d, ebx
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180005e58
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x88]
mov r9d, 3
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x180005e70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov rsi, rdx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x180005ebf
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x180005f59
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x68]
cmp r11d, 2
jb 0x180005f4e
add r11d, 2
mov eax, 2
mov dword [rsp + 0x68], r11d
shr r11d, 1
mov ecx, r11d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.18003783c
mov rbx, rax
test rax, rax
je 0x180005f4e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180005f70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov rbx, rdx
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x180005fc0
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x180006005
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180006020
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xorpd xmm0, xmm0
mov rdi, r8
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov rbx, rdx
mov qword [rsp + 0x38], 0
movsd qword [rsp + 0x40], xmm0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x180006072
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800060b7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x78], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsd xmm0, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180006720
Capabilities:
Copy file

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov ebp, r9d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp dword [0x1801161a0], 0
je 0x180006775
lea r9, str.CopyFile_1_______
lea r8, str.cmdtest
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov rdx, rbx
mov rcx, rdi
call fcn.18001d4c0
lea r8, str._NEW.txt
lea rdx, str..txt
mov rcx, rdi
call fcn.18001dc60
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180020b30
nop
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.180020b30
nop
lea r8, [0x1800c38f0]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.180020e20
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180020e20
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.18001d450
nop
lea rcx, [rsp + 0x40]
call fcn.18001d340
nop
lea rcx, [rsp + 0x48]
call fcn.18001d340
lea r8, [0x1800c38f0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180020e20
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180020dc0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.18001d450
nop
lea rcx, [rsp + 0x48]
call fcn.18001d340
nop
lea rcx, [rsp + 0x40]
call fcn.18001d340
mov r8d, ebp
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
cmp dword [0x1801161a0], 0
je 0x1800068ab
mov rdx, qword [rdi]
lea rcx, [rsp + 0x48]
call fcn.1800215c0
nop
mov dword [rsp + 0x28], ebx
mov r9, qword [rax]
mov qword [rsp + 0x20], r9
lea r9, str.CopyFile_1______s___d_
lea r8, str.cmdtest
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
nop
lea rcx, [rsp + 0x48]
call fcn.18001eca0
nop
lea rcx, [rsp + 0x30]
call fcn.18001d340
nop
lea rcx, [rsp + 0x38]
call fcn.18001d340
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x180007d10
Capabilities:
Delete registry key
Delete registry value

Disassembly:
add rcx, 0x10
jmp fcn.180027900
Function at 0x180009170
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1801003f0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov esi, edx
mov rbx, rcx
test rcx, rcx
je 0x180009355
test edx, edx
je 0x180009355
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x2a0], rdi
mov byte [rsp + 0x40], 0
call fcn.1800369b0
xor eax, eax
lea r8, [rsp + 0x30]
lea rdx, [0x1800c1c88]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], 0x104
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x18000929a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x1800c1c78]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x18000929a
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x40]
not rcx
lea rax, [rcx - 2]
or rcx, 0xffffffffffffffff
cdqe
cmp byte [rsp + rax + 0x40], 0x5c
je 0x180009276
xor eax, eax
repne scasb al, byte [rdi]
mov rax, qword [0x1800c1c70]
mov qword [rdi - 1], rax
jmp 0x180009305
xor eax, eax
repne scasb al, byte [rdi]
mov eax, dword [0x1800c1c64]
mov dword [rdi - 1], eax
movzx eax, word [0x1800c1c68]
mov word [rdi + 3], ax
movzx eax, byte [0x1800c1c6a]
mov byte [rdi + 5], al
jmp 0x180009305
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.1800369b0
mov eax, dword [0x1800c3e78]
lea rcx, [rbp + 0x51]
movups xmm0, xmmword [str.c:program_filescommom_files_system]
movups xmm1, xmmword [0x1800c3e68]
mov dword [rsp + 0x60], eax
movzx eax, byte [0x1800c3e7c]
xor edx, edx
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
mov r8d, 0x103
mov byte [rbp + 0x50], 0
mov byte [rsp + 0x64], al
call fcn.1800369b0
lea rcx, [rbp + 0x50]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movzx edx, byte [rbp + 0x50]
mov byte [rsp + 0x40], dl
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
mov rdi, qword [rsp + 0x2a0]
mov r8, rsi
not rcx
dec rcx
cmp rcx, rsi
jae 0x180009357
xor edx, edx
mov rcx, rbx
call fcn.1800369b0
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x40]
sub rbx, rax
nop
movzx eax, byte [rdx]
inc rdx
mov byte [rbx + rdx - 1], al
test al, al
jne 0x180009340
mov eax, 1
jmp 0x180009357
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.180036980
add rsp, 0x270
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000aee0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, rdx
repne scasb al, byte [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x18000af42
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movsxd rdi, edi
mov esi, 1
mov qword [rsp + 0x30], rdi
nop
test byte [rbx], 0x10
je 0x18000b005
cmp byte [rbx + 0x2c], 0x2e
jne 0x18000af79
movzx eax, byte [rbx + 0x2d]
cmp al, 0x2e
jne 0x18000af71
cmp byte [rbx + 0x2e], 0
je 0x18000b02d
test al, al
je 0x18000b02d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x2c]
repne scasb al, byte [rdi]
mov eax, dword [rsp + 0x20]
not rcx
cmp rax, rcx
jb 0x18000b023
mov rax, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov byte [rax + rbp - 1], 0
xor eax, eax
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx + 0x2c]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x18000afb0
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rbx
repne scasb al, byte [rdi]
movzx eax, word [0x1800c3f4c]
mov rcx, rbp
mov word [rdi - 1], ax
movzx eax, byte [0x1800c3f4e]
mov byte [rdi + 1], al
call fcn.18000aee0
mov rdi, qword [rsp + 0x30]
mov word [rdi + rbp - 1], 0x2a
mov esi, eax
jmp 0x18000b028
mov r8, qword [rsp + 0x78]
lea rdx, [rbx + 0x2c]
mov rcx, rbp
mov byte [rdi + rbp - 1], 0
call qword [rsp + 0x70]
mov byte [rdi + rbp - 1], 0x2a
mov esi, eax
jmp 0x18000b028
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test esi, esi
je 0x18000b047
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov rcx, qword [rsp + 0x28]
test eax, eax
jne 0x18000af50
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000b070
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, rdx
repne scasw ax, word [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x18000b0d3
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movsxd rdi, edi
mov esi, 1
xor r8d, r8d
mov qword [rsp + 0x30], rdi
test byte [rbx], 0x10
je 0x18000b1b2
cmp word [rbx + 0x2c], 0x2e
jne 0x18000b111
movzx eax, word [rbx + 0x2e]
cmp ax, 0x2e
jne 0x18000b108
cmp word [rbx + 0x30], 0
je 0x18000b1e0
test ax, ax
je 0x18000b1e0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x2c]
repne scasw ax, word [rdi]
mov eax, dword [rsp + 0x20]
not rcx
cmp rax, rcx
jb 0x18000b1d6
mov rax, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov word [rbp + rax*2 - 2], r8w
xor eax, eax
repne scasw ax, word [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rbx + rcx + 0x2c]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x18000b150
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rbx
repne scasw ax, word [rdi]
mov eax, dword [0x1800c3f50]
mov rcx, rbp
mov dword [rdi - 2], eax
movzx eax, word [0x1800c3f54]
mov word [rdi + 2], ax
call fcn.18000b070
mov rdi, qword [rsp + 0x30]
mov esi, eax
mov eax, 0x2a
mov word [rbp + rdi*2 - 2], ax
xor eax, eax
mov word [rbp + rdi*2], ax
jmp 0x18000b1db
mov word [rbp + rdi*2 - 2], r8w
mov r8, qword [rsp + 0x78]
lea rdx, [rbx + 0x2c]
mov rcx, rbp
call qword [rsp + 0x70]
mov esi, eax
mov eax, 0x2a
mov word [rbp + rdi*2 - 2], ax
jmp 0x18000b1db
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test esi, esi
je 0x18000b200
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, qword [rsp + 0x28]
mov r8d, 0
test eax, eax
jne 0x18000b0e3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000bcd0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x390
mov rax, qword [0x1801003f0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov ebp, edx
mov rbx, rcx
test rcx, rcx
je 0x18000bf02
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x18000bf02
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp eax, 0xffffffff
je 0x18000bf02
test al, 1
je 0x18000bd3f
and edi, 0xfffffffe
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test dil, 0x10
je 0x18000bee0
lea rcx, [rsp + 0x271]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x3a8], rsi
mov byte [rsp + 0x270], 0
call fcn.1800369b0
lea rcx, [rsp + 0x270]
mov rdx, rbx
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x18000bd80
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasb al, byte [rdi]
movzx eax, word [0x1800c3f4c]
lea rcx, [rsp + 0x24]
mov word [rdi - 1], ax
movzx eax, byte [0x1800c3f4e]
xor edx, edx
mov r8d, 0x13c
mov dword [rsp + 0x20], 0
mov byte [rdi + 1], al
call fcn.1800369b0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000becd
nop dword [rax]
lea rdx, [0x1800c42cc]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x18000beae
lea rdx, [0x1800c42c8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x18000beae
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x160], 0
call fcn.1800369b0
lea rcx, [rsp + 0x160]
sub rcx, rbx
mov rdx, rbx
nop
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x18000be50
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
movzx eax, word [0x1800c38f0]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x4c]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x18000be90
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.18000bcd0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18000bdf0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rsi, qword [rsp + 0x3a8]
jmp 0x18000bee9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x18000bf04
test ebp, ebp
je 0x18000bf04
lea r8d, [rax + 4]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x18000bf04
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.180036980
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret