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

Disassembly:
jmp 0x140006960
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x14002e1cb]
call fcn.140001645
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0x144], 0
lea r8, [rbp + 0x84]
lea rdx, [rbp + 0x68]
mov ecx, 0x65
call fcn.1400015f5
test eax, eax
jne 0x140006a01
jmp 0x140006bed
mov rax, qword [rbp + 0x240]
add rax, 0x78
mov rdx, rax
mov ecx, dword [rbp + 0x84]
call fcn.1400012c1
test eax, eax
jne 0x140006a28
jmp 0x140006bed
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0xf8]
call sub.VCRUNTIME140D.dll_memset
mov dword [rbp + 0xf8], 0x30
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0xf8]
mov edx, 0x1f003f
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtCreateTransaction]
mov dword [rbp + 0x144], eax
cmp dword [rbp + 0x144], 0
jge 0x140006aab
jmp 0x140006bed
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rax, qword [rbp + 0x240]
mov rcx, qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileTransactedW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x140006b10
jmp 0x140006bed
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xa4]
mov r8d, dword [rbp + 0x84]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140006b43
jmp 0x140006bed
mov rcx, qword [rbp + 0x240]
call fcn.140001695
mov rdx, rax
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rbp + 0xf8], 0x30
mov qword [rbp + 0x100], 0
mov dword [rbp + 0x110], 0x40
lea rax, [rbp + 0xc8]
mov qword [rbp + 0x108], rax
mov qword [rbp + 0x118], 0
mov qword [rbp + 0x120], 0
mov rax, qword [rbp + 0x240]
add rax, 0x30
mov rcx, qword [rbp + 0x48]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8, [rbp + 0xf8]
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jge 0x140006be6
jmp 0x140006bed
mov dword [rbp + 4], 1
lea rcx, [rbp + 0x28]
call fcn.140001113
lea rcx, [rbp + 0x48]
call fcn.140001113
mov ecx, dword [rbp + 0x144]
call fcn.140001131
cmp dword [rbp + 4], 0
jne 0x140006c2b
mov rcx, qword [rbp + 0x240]
call fcn.140001695
mov rdx, rax
lea rcx, str.____Failed_to_create_section:__ws_r_n
call fcn.140001037
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001c310]
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x1400012e4
Capabilities:
Get common file path

Disassembly:
jmp 0x14000d570
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14002e556]
call fcn.140001645
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0x105
mov qword [rbp + 0x48], 0
mov edx, 0x20a
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14000d5ee
jmp 0x14000d62f
mov rdx, qword [rbp + 0x48]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x14000d605
jmp 0x14000d62f
mov r9, qword [rbp + 0x140]
xor r8d, r8d
lea rdx, [0x14001ca1c]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14000d628
jmp 0x14000d62f
mov dword [rbp + 4], 1
lea rcx, [rbp + 0x48]
call fcn.1400010a5
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f6c0]
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140001316
Capabilities:
Delete file

Disassembly:
jmp 0x1400050f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14002e1cb]
call fcn.140001645
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x100]
cmp dword [rax + 0x98], 0
je 0x140005150
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000513f
jmp 0x140005157
mov rax, qword [rbp + 0x100]
mov dword [rax + 0x98], 0
mov dword [rbp + 4], 1
cmp dword [rbp + 4], 0
jne 0x140005174
mov rax, qword [rbp + 0x100]
mov rdx, qword [rax + 0x48]
lea rcx, str.____Failed_to_delete_custom_TypeLib_file:__ws_r_n
call fcn.140001037
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140001320
Capabilities:
Enumerate threads

Disassembly:
jmp 0x140005640
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x210], rax
lea rcx, [0x14002e1cb]
call fcn.140001645
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x88], 0xffffffffffffffff
mov qword [rbp + 0xa8], 0
mov dword [rbp + 0x134], 0
lea rcx, [0x14001ca70]
call fcn.1400011f4
test eax, eax
jne 0x1400056d1
jmp 0x1400058af
lea rcx, str.SeImpersonatePrivilege
call fcn.1400011f4
test eax, eax
jne 0x1400056eb
jmp 0x1400058af
lea rdx, [rbp + 0x44]
lea rcx, str.TrustedInstaller
call fcn.1400011e0
test eax, eax
jne 0x140005709
jmp 0x1400058af
cmp dword [rbp + 0x44], 4
je 0x140005741
lea rdx, str.TrustedInstaller
lea rcx, str.___Starting_service__ws..._r_n
call fcn.140001037
mov edx, 1
lea rcx, str.TrustedInstaller
call fcn.1400015e6
test eax, eax
jne 0x140005741
jmp 0x1400058af
lea rdx, [rbp + 0x64]
lea rcx, str.TrustedInstaller
call fcn.1400010d2
test eax, eax
jne 0x14000575f
jmp 0x1400058af
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffffffffffffffff
jne 0x140005786
jmp 0x1400058af
mov r8d, 0x1c
xor edx, edx
lea rcx, [rbp + 0xc8]
call sub.VCRUNTIME140D.dll_memset
mov dword [rbp + 0xc8], 0x1c
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 0x88]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1400057c5
jmp 0x1400058af
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0xd4], eax
jne 0x1400057f7
mov r8d, dword [rbp + 0xd0]
xor edx, edx
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x1400057f7
jmp 0x14000580e
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 0x88]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400057c5
mov r8d, 0xc
xor edx, edx
lea rcx, [rbp + 0x108]
call sub.VCRUNTIME140D.dll_memset
mov dword [rbp + 0x108], 0xc
mov dword [rbp + 0x10c], 2
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r8, [rbp + 0x108]
mov rdx, qword [rbp + 0xa8]
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtImpersonateThread]
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
jge 0x140005866
jmp 0x1400058af
mov dword [rbp + 0x24], 1
mov rax, qword [rbp + 0x240]
add rax, 0x28
mov qword [rbp + 0x208], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, qword [rbp + 0x208]
mov r9, rcx
xor r8d, r8d
mov edx, 0x2000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1400058a8
jmp 0x1400058af
mov dword [rbp + 4], 1
cmp dword [rbp + 0x24], 0
je 0x1400058c1
mov rcx, qword [rbp + 0x240]
call fcn.1400012da
lea rcx, [rbp + 0xa8]
call fcn.140001113
lea rcx, [rbp + 0x88]
call fcn.140001113
mov ecx, dword [rbp + 0x134]
call fcn.140001131
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysStringLen
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x140001375
Capabilities:
Terminate process

Disassembly:
jmp 0x140012cd0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140001384
Capabilities:
Copy file
Get common file path
Write file on windows

Disassembly:
jmp 0x14000a7a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e8]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x14002e2fb]
call fcn.140001645
mov dword [rbp + 4], 0
mov qword [rbp + 0x88], 0xffffffffffffffff
mov qword [rbp + 0xa8], 0
lea r8, [rbp + 0x44]
lea rdx, [rbp + 0x28]
mov ecx, 0x65
call fcn.1400015f5
test eax, eax
jne 0x14000a826
jmp 0x14000a93a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffffffffffffffff
jne 0x14000a876
jmp 0x14000a93a
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000a8a6
jmp 0x14000a93a
mov edx, 0x20a
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x14000a8cb
jmp 0x14000a93a
mov edx, 0x104
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14000a8e5
jmp 0x14000a93a
lea rax, [0x14001e2f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0xa8]
lea r8, [0x14001d2b8]
mov edx, 0x104
mov rcx, qword [rbp + 0xa8]
call fcn.140001226
xor r8d, r8d
mov rax, qword [rbp + 0x1a0]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000a933
jmp 0x14000a93a
mov dword [rbp + 4], 1
cmp qword [rbp + 0x88], 0
je 0x14000a95b
cmp qword [rbp + 0x88], 0xffffffffffffffff
je 0x14000a95b
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0xa8], 0
je 0x14000a972
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001e1f0]
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140001456
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015160
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015180
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015193
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400151bd
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400151d1
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400151e3
xor al, al
jmp 0x140015201
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400151ff
xor al, al
jmp 0x140015201
mov al, 1
add rsp, 0x38
ret
Function at 0x1400014c4
Capabilities:
Get file version info

Disassembly:
jmp 0x14000d920
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x14002e556]
call fcn.140001645
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0xc8], 0
mov edx, 0x80
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x14000d9ba
jmp 0x14000dae3
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 0x1c0]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x14000d9dd
jmp 0x14000dae3
mov eax, dword [rbp + 0x44]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14000da02
jmp 0x14000dae3
mov dword [rbp + 0x24], 0
mov r9, qword [rbp + 0x68]
mov r8d, dword [rbp + 0x44]
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x1c0]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x14000da2e
jmp 0x14000dae3
lea r9, [rbp + 0xa4]
lea r8, [rbp + 0x88]
lea rdx, [0x14002100c]
mov rcx, qword [rbp + 0x68]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14000da5a
jmp 0x14000dae3
mov rax, qword [rbp + 0x88]
cmp dword [rax], 0xfeef04bd
je 0x14000da6d
jmp 0x14000dae3
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
and eax, 0xffff
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 0xc]
shr ecx, 0x10
and ecx, 0xffff
mov rdx, qword [rbp + 0x88]
mov edx, dword [rdx + 8]
and edx, 0xffff
mov r8, qword [rbp + 0x88]
mov r8d, dword [r8 + 8]
shr r8d, 0x10
and r8d, 0xffff
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9d, r8d
lea r8, [0x140021010]
mov edx, 0x40
mov rcx, qword [rbp + 0xc8]
call fcn.140001226
mov dword [rbp + 4], 1
lea rcx, [rbp + 0x68]
call fcn.1400010a5
cmp dword [rbp + 4], 0
jne 0x14000dafe
lea rcx, [rbp + 0xc8]
call fcn.1400010a5
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x140020630]
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x1400014f6
Capabilities:
Get common file path

Disassembly:
jmp 0x140004b00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14002e1cb]
call fcn.140001645
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov edx, 0x20a
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140004b85
jmp 0x140004c4f
mov edx, 0x104
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140004ba2
jmp 0x140004c4f
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_wcslen]
cmp rax, 2
jae 0x140004bbc
jmp 0x140004c4f
mov eax, 2
imul rax, rax, 2
xor ecx, ecx
mov rdx, qword [rbp + 0x28]
mov word [rdx + rax], cx
mov rcx, qword [rbp + 0x140]
call fcn.1400014ce
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x28]
lea r8, [0x14001d2b8]
mov edx, 0x104
mov rcx, qword [rbp + 0x28]
call fcn.140001226
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 7
mov edx, 0x80010000
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x140004c39
jmp 0x140004c4f
mov rax, qword [rbp + 0x140]
mov rcx, qword [rbp + 0x48]
mov qword [rax + 0x38], rcx
mov dword [rbp + 4], 1
cmp dword [rbp + 4], 0
jne 0x140004c6e
mov rdx, qword [rbp + 0x28]
lea rcx, str.____Failed_to_create_dummy_file:__ws_r_n
call fcn.140001037
lea rcx, [rbp + 0x48]
call fcn.140001113
lea rcx, [rbp + 0x28]
call fcn.1400010a5
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140001541
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
jmp 0x14000c230
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xc6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4e8]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x488], rax
lea rcx, [0x14002e556]
call fcn.140001645
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 1
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov edx, 0x20a
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x14000c2cd
jmp 0x14000c42f
mov edx, 0x20a
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14000c2f2
jmp 0x14000c42f
mov r9, qword [rbp + 0x4b0]
lea r8, str._ws
mov edx, 0x104
mov rcx, qword [rbp + 0x68]
call fcn.140001226
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x14000c346
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000c33c
mov dword [rbp + 4], 1
jmp 0x14000c42f
lea rax, [rbp + 0xdc]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x4b0]
lea r8, [0x14001d2b8]
mov edx, 0x104
mov rcx, qword [rbp + 0x88]
call fcn.140001226
mov eax, dword [rbp + 0xb0]
and eax, 0x10
test eax, eax
je 0x14000c3c9
lea rdx, [0x140020f50]
lea rcx, [rbp + 0xdc]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
je 0x14000c3ae
lea rdx, [0x140020f54]
lea rcx, [rbp + 0xdc]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x14000c3b0
jmp 0x14000c3f4
mov rcx, qword [rbp + 0x88]
call fcn.140001541
test eax, eax
jne 0x14000c3c7
mov dword [rbp + 0x24], 0
jmp 0x14000c3f4
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000c3f4
mov rdx, qword [rbp + 0x88]
lea rcx, str.____Failed_to_delete_file:__ws_r_n
call fcn.140001037
mov dword [rbp + 0x24], 0
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000c346
cmp dword [rbp + 0x24], 0
je 0x14000c428
mov rcx, qword [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14000c428
jmp 0x14000c42f
mov dword [rbp + 4], 1
cmp qword [rbp + 0x48], 0
je 0x14000c447
cmp qword [rbp + 0x48], 0xffffffffffffffff
je 0x14000c447
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rbp + 0x68]
call fcn.1400010a5
lea rcx, [rbp + 0x88]
call fcn.1400010a5
cmp dword [rbp + 4], 0
jne 0x14000c475
mov rdx, qword [rbp + 0x4b0]
lea rcx, str.____Failed_to_delete_directory:__ws_r_n
call fcn.140001037
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140020460]
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x488]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x498]
pop rdi
pop rbp
ret
Function at 0x14000159b
Capabilities:
Get common file path

Disassembly:
jmp 0x14000a630
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x14002e2fb]
call fcn.140001645
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x100]
mov r9, qword [rax + 8]
xor r8d, r8d
lea rdx, [0x14001ca1c]
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14000a683
jmp 0x14000a6ee
lea rax, str.faultrep.dll
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x100]
mov r9, qword [rax]
lea r8, [0x14001e2e0]
mov edx, 0x104
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.140001226
lea rax, [0x14001e2f0]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x100]
mov r9, qword [rax]
lea r8, [0x14001e2e0]
mov edx, 0x104
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x18]
call fcn.140001226
mov dword [rbp + 4], 1
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400015e6
Capabilities:
Start service

Disassembly:
jmp 0x14000f460
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x14002e556]
call fcn.140001645
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbp + 0x88], rax
lea r8, [rbp + 0x28]
mov edx, 0x14
mov rcx, qword [rbp + 0x1a0]
call fcn.140001474
test eax, eax
jne 0x14000f4ec
jmp 0x14000f5ef
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000f509
jmp 0x14000f5ef
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.140001154
test eax, eax
jne 0x14000f524
jmp 0x14000f5ef
cmp dword [rbp + 0x1a8], 0
je 0x14000f5e8
cmp dword [rbp + 0x4c], 4
je 0x14000f5c1
xor edx, edx
mov eax, dword [rbp + 0x60]
mov ecx, 0xa
div ecx
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0x3e8
jae 0x14000f565
mov dword [rbp + 0xa4], 0x3e8
jmp 0x14000f57b
cmp dword [rbp + 0xa4], 0x2710
jbe 0x14000f57b
mov dword [rbp + 0xa4], 0x2710
mov ecx, dword [rbp + 0xa4]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.140001154
test eax, eax
jne 0x14000f59a
jmp 0x14000f5c1
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, qword [rbp + 0x88]
cmp rax, 0x1388
jbe 0x14000f5bc
mov ecx, 0x5b4
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000f5c1
jmp 0x14000f531
cmp dword [rbp + 0x4c], 4
jne 0x14000f5d3
mov dword [rbp + 0x174], 1
jmp 0x14000f5dd
mov dword [rbp + 0x174], 0
mov eax, dword [rbp + 0x174]
mov dword [rbp + 4], eax
jmp 0x14000f5ef
mov dword [rbp + 4], 1
cmp qword [rbp + 0x28], 0
je 0x14000f600
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400015f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x14000d7e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x14002e556]
call fcn.140001645
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov dword [rbp + 0x84], 0
movzx eax, word [rbp + 0x180]
mov r8d, 0xa
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14000d857
jmp 0x14000d8ce
mov rdx, qword [rbp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x14000d876
jmp 0x14000d8ce
mov rdx, qword [rbp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14000d891
jmp 0x14000d8ce
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14000d8aa
jmp 0x14000d8ce
mov rax, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov rax, qword [rbp + 0x190]
mov ecx, dword [rbp + 0x84]
mov dword [rax], ecx
mov dword [rbp + 4], 1
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret