joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010880
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xf0
mov rbx, rcx
lea rcx, [0x01003ab0]
mov rdi, rdx
call fcn.0100fdd0
mov esi, 0x68
lea rcx, [rsp + 0x80]
mov r8, rsi
xor edx, edx
call fcn.010328a0
lea eax, [rsi - 0x67]
lea rcx, [rbx + 0x10]
mov word [rsp + 0xc0], ax
xor eax, eax
lea rdx, [0x01003570]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x80], esi
call fcn.0100dc44
lea rcx, [rbx + 0x18]
lea rdx, [0x01003570]
call fcn.0100dc44
mov rcx, rbx
call fcn.01010ac0
xor esi, esi
cmp eax, esi
je 0x1010975
lea rcx, [0x01003b00]
call fcn.0100fdd0
lea r11, [rsp + 0x60]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp eax, esi
jne 0x1010969
lea rcx, [0x01003b80]
call fcn.0100fdd0
jmp 0x1010a93
lea rcx, [0x01003c00]
jmp 0x1010a39
lea rcx, [0x01003d80]
call fcn.0100fdd0
lea r11, [rsp + 0x60]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call fcn.01011214
mov ebx, eax
cmp eax, esi
jne 0x1010a32
lea rcx, [0x01003e00]
call fcn.0100fdd0
lea rcx, [0x01003e80]
call fcn.0100fdd0
lea r11, [rsp + 0x60]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp eax, esi
jne 0x1010a29
lea rcx, [0x01003f00]
jmp 0x101095f
lea rcx, [0x01003f80]
jmp 0x1010a39
lea rcx, [0x01004000]
call fcn.0100fdd0
cmp dword [rsp + 0x120], esi
je 0x1010a7d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x01003c80]
mov edx, eax
call fcn.0100fdd0
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x01003d00]
mov edx, eax
call fcn.0100fdd0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x01004090]
mov edx, ebx
call fcn.0100fdd0
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1010c00
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rsi, rdx
xor edi, edi
cmp rdx, rdi
je 0x1010da4
lea rdx, [0x01003570]
lea rcx, [rsp + 0x20]
call fcn.0100da98
nop
mov ebx, 0x208
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.0100df30
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or edx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.0100dfa0
mov r11, qword [rsp + 0x20]
cmp qword [r11 - 0x10], rdi
je 0x1010d0f
mov rax, qword [0x01043880]
mov qword [rsp + 0x68], rax
lea ebp, [rdi + 1]
mov rdx, rbp
lea rcx, [rsp + 0x68]
call fcn.0100e00c
mov r8, rbp
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.0100e13c
mov rdx, qword [rax]
mov rax, qword [rsp + 0x68]
sub rdx, rax
movzx r8d, word [rax]
movzx ecx, word [rax + rdx]
sub r8d, ecx
jne 0x1010cbd
add rax, 2
test ecx, ecx
jne 0x1010ca8
movzx ebx, dil
cmp r8d, edi
cmovne ebx, ebp
lea rcx, [rsp + 0x28]
call fcn.0100d9e0
lea rcx, [rsp + 0x68]
call fcn.0100d9e0
cmp bl, dil
je 0x1010cfc
mov eax, 0x5c
mov word [rsp + 0x68], ax
lea r8, [rsp + 0x68]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.0100de4c
lea rdx, [0x01004480]
lea rcx, [rsp + 0x20]
call fcn.0100deec
jmp 0x1010d20
lea rdx, [0x01004480]
lea rcx, [rsp + 0x20]
call fcn.0100dc00
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp rax, rdi
jne 0x1010d41
lea rcx, [rsp + 0x20]
call fcn.0100d9e0
xor eax, eax
jmp 0x1010da6
lea rdx, [0x01004498]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
jne 0x1010d6e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x20]
call fcn.0100d9e0
xor eax, eax
jmp 0x1010da6
mov dword [rsp + 0x78], edi
lea r8, [rsp + 0x78]
mov edx, 0x1000
mov rcx, rsi
call rax
cmp eax, edi
je 0x1010d8c
mov edi, dword [rsp + 0x78]
shr edi, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x20]
call fcn.0100d9e0
mov eax, edi
jmp 0x1010da6
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x10123bc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, [0x01003570]
lea rcx, [rsp + 0x48]
call fcn.0100da98
mov ebx, 0x208
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.0100df30
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x48]
or edx, 0xffffffff
call fcn.0100dfa0
mov rax, qword [rsp + 0x48]
xor ebp, ebp
mov esi, 1
cmp qword [rax - 0x10], rbp
je 0x10124b7
mov rax, qword [0x01043880]
lea rcx, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x40], rax
call fcn.0100e00c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r8, rsi
call fcn.0100e13c
mov rcx, qword [rsp + 0x40]
mov r8, qword [rax]
sub r8, rcx
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x1012466
add rcx, 2
test eax, eax
jne 0x1012452
cmp edx, ebp
lea rcx, [rsp + 0x50]
movzx ebx, bpl
cmovne ebx, esi
call fcn.0100d9e0
lea rcx, [rsp + 0x40]
call fcn.0100d9e0
cmp bl, bpl
je 0x10124a4
mov eax, 0x5c
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov rdx, rsi
mov word [rsp + 0x40], ax
call fcn.0100de4c
lea rdx, [0x010062e0]
lea rcx, [rsp + 0x48]
call fcn.0100deec
jmp 0x10124c8
lea rdx, [0x010062e0]
lea rcx, [rsp + 0x48]
call fcn.0100dc00
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi], rax
cmp rax, rbp
je 0x10124de
mov dword [rdi + 8], esi
mov ebx, dword [rdi + 8]
lea rcx, [rsp + 0x48]
call fcn.0100d9e0
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1012500
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
lea r8, [rax - 0x18]
lea rdx, [0x01006300]
and qword [rax - 0x18], rsi
and dword [rax + 0x20], esi
and dword [rax + 0x18], esi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1012602
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
lea rdx, [0x01006330]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1012602
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1012602
lea ecx, [rsi + 0x40]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1012602
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [0x01006330]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10125f9
cmp dword [rsp + 0x68], 7
jne 0x10125f9
mov rdi, rbx
cmp byte [rbx], sil
je 0x10125f9
lea rdx, [0x010063a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10125f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdqe
add rdi, rax
cmp byte [rdi], sil
jne 0x10125c9
jmp 0x10125f9
mov esi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1012612
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x101262c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x01042480]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov edi, 0x114
lea rcx, [rsp + 0x20]
mov r8, rdi
xor edx, edx
call fcn.010328a0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x1012764
mov eax, dword [rsp + 0x24]
cmp eax, 4
jbe 0x1012691
cmp dword [rsp + 0x28], 0
Function at 0x101511c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x01042480]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r12, rdx
mov r15, rcx
lea rdx, [0x01003570]
mov rcx, r12
mov rbp, r8
call fcn.0100da98
mov rdx, qword [rbp]
mov r13, qword [rdx - 0x10]
xor edx, edx
mov r14d, edx
mov rbx, rdx
cmp r13, rdx
jbe 0x1015362
lea esi, [rdx + 1]
lea r8d, [rdx + 0x22]
cmp r14d, esi
jne 0x10151e1
mov rcx, qword [rbp]
movzx eax, word [rcx + rbx*2]
cmp ax, r8w
jne 0x10151c7
lea rdi, [rbx + 1]
cmp rdi, r13
jae 0x10151bf
cmp word [rcx + rbx*2 + 2], r8w
jne 0x10151bf
mov word [rsp + 0x20], r8w
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, r12
call fcn.0100de4c
mov rbx, rdi
jmp 0x101534e
mov r14d, edx
jmp 0x1015356
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, r12
mov word [rsp + 0x20], ax
call fcn.0100de4c
jmp 0x101534e
mov rax, qword [rbp]
cmp word [rax + rbx*2], r8w
jne 0x10151f4
mov r14d, esi
jmp 0x1015356
cmp word [rax + rbx*2], 0x20
je 0x1015356
cmp word [rax + rbx*2], 0x2b
je 0x1015356
lea rdx, [rsp + 0x40]
mov r9d, 9
mov r8, rbx
mov rcx, rbp
call fcn.0100e0c4
xor edx, edx
lea rdi, [0x010079b8]
mov rsi, qword [rax]
lea ecx, [rdx + 0xa]
repe cmpsw word [rsi], word [rdi]
je 0x1015239
sbb edx, edx
sbb edx, 0xffffffff
xor eax, eax
lea rcx, [rsp + 0x40]
lea esi, [rax + 1]
movzx edi, al
cmp edx, eax
cmove edi, esi
call fcn.0100d9e0
test dil, dil
je 0x1015299
mov rax, qword [0x01043880]
lea rdx, [r15 + 0x100]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.0100db8c
mov rdx, qword [rsp + 0x28]
mov r8, rdx
mov rdx, qword [rdx - 0x10]
mov rcx, r12
call fcn.0100de4c
lea rcx, [rsp + 0x28]
add rbx, 9
call fcn.0100d9e0
jmp 0x1015327
lea rdx, [rsp + 0x38]
mov r9d, 9
mov r8, rbx
mov rcx, rbp
call fcn.0100e0c4
xor edx, edx
lea rdi, [0x010079d0]
mov rsi, qword [rax]
lea ecx, [rdx + 0xa]
repe cmpsw word [rsi], word [rdi]
je 0x10152c8
sbb edx, edx
sbb edx, 0xffffffff
xor eax, eax
lea rcx, [rsp + 0x38]
lea esi, [rax + 1]
movzx edi, al
cmp edx, eax
cmove edi, esi
call fcn.0100d9e0
xor edx, edx
cmp dil, dl
je 0x1015329
lea rcx, [rsp + 0x50]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.0100da98
mov rdx, qword [rsp + 0x30]
mov rcx, r12
mov r8, rdx
mov rdx, qword [rdx - 0x10]
call fcn.0100de4c
lea rcx, [rsp + 0x30]
call fcn.0100d9e0
add rbx, 9
xor edx, edx
cmp rbx, r13
jae 0x1015350
mov rax, qword [rbp]
lea rdx, [rax + rbx*2]
cmp word [rdx], 0x20
je 0x101534e
cmp word [rdx], 0x2b
je 0x101534e
add rbx, rsi
add rdx, 2
cmp rbx, r13
jb 0x1015336
xor edx, edx
mov r8d, 0x22
add rbx, rsi
cmp rbx, r13
jb 0x101517d
mov rcx, rbp
call fcn.0100d9e0
mov rax, r12
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.01026f20
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1015e30
Capabilities:
Query service status

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
sub rsp, 0x40
lea rcx, [0x01008238]
mov rbp, rdx
call fcn.0100fdd0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor edi, edi
mov rsi, rax
cmp rax, rdi
jne 0x1015e86
lea rcx, [0x01008280]
call fcn.0100fdd0
mov edi, 0xfffffffe
jmp 0x1015f06
mov rdx, qword [rbp]
mov r8d, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
cmp rax, rdi
jne 0x1015ebb
lea rcx, [0x010082f0]
call fcn.0100fdd0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or edi, 0xffffffff
jmp 0x1015f06
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, edi
jne 0x1015eef
lea rcx, [0x01008360]
call fcn.0100fdd0
jmp 0x1015f06
cmp dword [rsp + 0x24], 4
lea rcx, [0x010083e0]
sete dil
mov edx, edi
call fcn.0100fdd0
mov rcx, rbp
call fcn.0100d9e0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x1016f30
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x01044b88]
cmp rdx, qword [rbx + 0x130]
jne 0x101710a
lea rcx, [0x01009170]
call fcn.0100fdd0
cmp dword [rbx + 0x144], 0
je 0x101701d
inc dword [rbx + 0x14c]
mov edx, dword [rbx + 0x14c]
lea rcx, [0x010091a0]
call fcn.0100fdd0
cmp dword [rbx + 0x14c], 3
jl 0x101701d
lea rcx, [0x01009210]
call fcn.0100fdd0
mov rcx, qword [rbx + 0x150]
and dword [rbx + 0x144], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1016fd4
test al, 1
je 0x1016fc3
mov rcx, qword [rbx + 0x150]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x101701d
lea rcx, [0x01009270]
call fcn.0100fdd0
inc dword [rbx + 0x148]
cmp dword [rbx + 0x148], 5
jl 0x101700c
and dword [0x01044db4], 0
mov dword [0x01044b80], 4
mov dword [0x01044b84], 8
jmp 0x101701d
and dword [rbx + 0x14c], 0
mov dword [rbx + 0x144], 1
cmp dword [rbx + 0x15c], 0
je 0x10170e4
inc dword [rbx + 0x164]
mov edx, dword [rbx + 0x164]
lea rcx, [0x010092d0]
call fcn.0100fdd0
cmp dword [rbx + 0x164], 3
jl 0x10170e4
lea rcx, [0x01009340]
call fcn.0100fdd0
mov rcx, qword [rbx + 0x168]
and dword [rbx + 0x15c], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101709b
test al, 1
je 0x101708a
mov rcx, qword [rbx + 0x168]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx + 0x168]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10170e4
lea rcx, [0x010093a0]
call fcn.0100fdd0
inc dword [rbx + 0x160]
cmp dword [rbx + 0x160], 5
jl 0x10170d3
and dword [0x01044db4], 0
mov dword [0x01044b80], 4
mov dword [0x01044b84], 0xe
jmp 0x10170e4
and dword [rbx + 0x164], 0
mov dword [rbx + 0x15c], 1
cmp dword [rbx + 0x144], 0
jne 0x101710a
cmp dword [rbx + 0x15c], 0
jne 0x101710a
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret
Function at 0x1017118
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2d0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x01042480]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rdi, r9
mov rbx, r8
mov rsi, rdx
lea rcx, [0x01009408]
call fcn.0100fdd0
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.0100da30
nop
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.0100da30
nop
mov rdx, qword [rsp + 0x40]
lea rcx, [0x01009430]
call fcn.0100fdd0
mov rdx, qword [rsp + 0x38]
lea rcx, [0x01009450]
call fcn.0100fdd0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.0101f9e4
nop
cmp dword [rsp + 0x60], 0
jne 0x10171ef
lea rax, [0x0100b9c0]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.0101fb88
nop
lea rcx, [rsp + 0x38]
call fcn.0100d9e0
nop
lea rcx, [rsp + 0x40]
call fcn.0100d9e0
jmp 0x1017383
lea rdx, [0x010033f0]
lea rcx, [rsp + 0x30]
call fcn.0100da30
nop
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x30]
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.0101fe5c
nop
lea rcx, [rsp + 0x30]
call fcn.0100d9e0
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
lea rcx, [0x01009468]
call fcn.0100fdd0
lea rdx, [0x01009484]
mov rcx, rbx
call fcn.01027a44
test rax, rax
jne 0x101725a
or eax, 0xffffffff
jmp 0x1017260
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1017284
lea rdx, [0x01009490]
mov rcx, rbx
call fcn.01027a44
test rax, rax
jne 0x101727e
or eax, 0xffffffff
jmp 0x1017284
sub rax, rbx
sar rax, 1
test eax, eax
js 0x101734c
lea rdx, [0x01009498]
mov rcx, rbx
call fcn.01027a44
mov rdi, rax
test rax, rax
je 0x101734c
sub rdi, rbx
sar rdi, 1
test edi, edi
js 0x101734c
lea ecx, [rdi + 1]
movsxd rsi, ecx
cmp rsi, qword [rbx - 0x10]
ja 0x101734c
lea rcx, [rbx + rsi*2]
lea rdx, [0x01009498]
call fcn.01027a44
test rax, rax
je 0x101734c
sub rax, rbx
sar rax, 1
test eax, eax
js 0x101734c
sub eax, edi
dec eax
movsxd r9, eax
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.0100e0c4
mov rdx, qword [rsp + 0x30]
lea rcx, [0x010094a0]
call fcn.0100fdd0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.0100df30
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1017342
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x30]
call fcn.0100d9e0
lea rcx, [rsp + 0x48]
call fcn.0100d9e0
nop
lea rax, [0x0100b9c0]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.0101fb88
nop
lea rcx, [rsp + 0x38]
call fcn.0100d9e0
nop
lea rcx, [rsp + 0x40]
call fcn.0100d9e0
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.01026f20
add rsp, 0x2d0
pop rdi
pop rsi
pop rbx
ret
Function at 0x10173a4
Capabilities:
Read .ini file

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, 0x40
mov rax, qword [0x01043880]
lea rcx, [r11 - 0x18]
mov rbp, r9
mov r12, r8
mov rbx, rdx
mov qword [r11 - 0x18], rax
call fcn.0100d95c
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x1017437
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1017437
mov edi, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.0100df30
lea r8, [0x010033f0]
mov rdx, rbp
mov rcx, r12
mov r9, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x30]
or edx, 0xffffffff
call fcn.0100dfa0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.0100d7ec
lea rcx, [rsp + 0x30]
call fcn.0100d9e0
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x1017a34
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x01042480]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r13, rdx
xor r15d, r15d
lea rdx, [rsp + 0x40]
mov rcx, r13
mov r14d, r15d
mov ebp, r15d
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1017c7d
lea rcx, [rsp + 0x28]
mov rdx, r13
call fcn.0100da30
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov r8d, 3
call fcn.0100e13c
xor edx, edx
lea rdi, [0x01009c10]
mov rsi, qword [rax]
lea ecx, [rdx + 5]
repe cmpsw word [rsi], word [rdi]
je 0x1017aca
sbb edx, edx
sbb edx, 0xffffffff
cmp edx, r15d
lea rcx, [rsp + 0x20]
movzx edi, r15b
mov esi, 1
cmove edi, esi
call fcn.0100d9e0
lea rcx, [rsp + 0x28]
cmp dil, r15b
jne 0x1017b17
test byte [rsp + 0x40], 0x10
cmovne ebx, esi
call fcn.0100d9e0
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r15d
je 0x1017b1c
cmp ebx, r15d
jne 0x1017b1c
jmp 0x1017a8f
call fcn.0100d9e0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, r15d
je 0x1017c7d
lea rdx, [0x010033f0]
lea rcx, [rsp + 0x28]
call fcn.0100da30
lea rcx, [rsp + 0x28]
mov rdx, r13
call fcn.0100dc00
lea r8, [0x01009c10]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.0100dd70
lea rcx, [rsp + 0x28]
mov rdx, rax
call fcn.0100db8c
lea rcx, [rsp + 0x20]
call fcn.0100d9e0
lea rcx, [rsp + 0x28]
xor edx, edx
call fcn.0100df30
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1017c73
lea rdx, [0x010033f0]
lea rcx, [rsp + 0x20]
call fcn.0100da30
test byte [rsp + 0x40], 0x10
jne 0x1017c3d
lea rcx, [rsp + 0x20]
mov rdx, r13
call fcn.0100dc00
lea r8, [0x010073e8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.0100dd70
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.0100db8c
lea rcx, [rsp + 0x30]
call fcn.0100d9e0
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.0100dd70
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.0100db8c
lea rcx, [rsp + 0x38]
call fcn.0100d9e0
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.0100df30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r15d
je 0x1017c3d
add ebp, esi
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r15d
jne 0x1017bb1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rsp + 0x20]
mov r14d, esi
call fcn.0100d9e0
lea rcx, [rsp + 0x28]
call fcn.0100d9e0
mov eax, 0xffffff9d
cmp r14d, r15d
cmovne eax, ebp
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.01026f20
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
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 0x1017e34
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0xac8
mov rax, qword [0x01042480]
xor rax, rsp
mov qword [rsp + 0xab0], rax
mov rsi, qword [rsp + 0xb20]
mov rbp, rdx
mov r12, rcx
lea rdx, [0x010033f0]
mov rcx, rbp
mov rdi, r9
mov rbx, r8
call fcn.0100da30
lea rdx, [0x010033f0]
lea rcx, [rsp + 0x50]
call fcn.0100da30
mov r11, qword [rsi]
lea r9, [rsp + 0x480]
mov qword [rsp + 0x28], r11
lea r8, [0x010033f0]
mov r14d, 0x104
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1017f76
mov rcx, qword [rsi]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x690]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x8a0]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x270]
lea rdx, [rsp + 0x60]
mov r8, r14
mov qword [rsp + 0x20], r14
call fcn.01028994
test eax, eax
jne 0x1017f76
lea rax, [rsp + 0x480]
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x60]
lea rdx, [0x01009c20]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.0100e6e8
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x60]
lea rdx, [0x01003438]
lea rcx, [rsp + 0x50]
call fcn.0100e6e8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.0100d7ec
lea rcx, [r12 + 0x408]
mov rdx, rax
mov rbx, rax
call fcn.0100db8c
mov rcx, rbx
call fcn.0100d9e0
lea rcx, [rsp + 0x50]
call fcn.0100d9e0
mov rcx, rsi
call fcn.0100d9e0
mov rax, rbp
mov rcx, qword [rsp + 0xab0]
xor rcx, rsp
call fcn.01026f20
add rsp, 0xac8
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret