joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007dd30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14007da50
mov ebx, eax
test eax, eax
jne 0x14007dd60
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14007ddc3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007ddba
test al, 0x10
je 0x14007ddba
bt eax, 0xa
jae 0x14007ddb3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14007ddd4
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14007ddaf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14007ddaf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14007ddba
and dword [rsp + 0x3c], 0
jmp 0x14007ddbf
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14007eeb8
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [section..data]
jne 0x14000108a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001086
repz ret
ror rcx, 0x10
jmp 0x140001380
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000a480]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14000a578]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001405
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000a480]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001427
mov rax, qword [rsp + 0x88]
mov qword [0x14000a578], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000a518], rax
mov rax, qword [0x14000a578]
mov qword [0x14000a3f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000a500], rax
mov dword [0x14000a3e0], 0xc0000409
mov dword [0x14000a3e4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000a008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000a478], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140006400]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000a478], 0
jne 0x1400014ae
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001da0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140001de5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x28]
lea rcx, str.OpenSCManager_failed__error_code___d_n
call fcn.140004490
jmp 0x140001e8c
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001e27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
lea rcx, str.OpenService_failed__error_code___d_n
call fcn.140004490
jmp 0x140001e81
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140001e5c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140001e8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov edx, dword [rsp + 0x60]
lea rcx, str.ControlService_failed__error_code___d_n
call fcn.140004490
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
add rsp, 0x78
ret

Function at 0x140001ea0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rcx, str.Entering_RunService_...._n
call fcn.140004490
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140001efa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x28]
lea rcx, [0x140007d20]
call fcn.140004490
jmp 0x140001f9d
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001f39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
lea rcx, [0x140007d48]
call fcn.140004490
jmp 0x140001f92
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140001f6d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140001fab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
mov edx, dword [rsp + 0x3c]
lea rcx, str.StartService_failed__error_code___d_n
call fcn.140004490
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.Exiting_Runservice_service_n
call fcn.140004490
xor al, al
add rsp, 0x48
ret
Function at 0x140001fc0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, str.Entering_Unistall_Service...._n
call fcn.140004490
mov dword [rsp + 0x30], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000201c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov edx, dword [rsp + 0x68]
lea rcx, [0x140007c20]
call fcn.140004490
jmp 0x140002121
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140002061
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov edx, dword [rsp + 0x78]
lea rcx, [0x140007c48]
call fcn.140004490
jmp 0x14000210a
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp dword [rsp + 0x44], 1
je 0x1400020c6
lea r8, [rsp + 0x80]
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400020c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov edx, dword [rsp + 0xa0]
lea rcx, [0x140007c70]
call fcn.140004490
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400020eb
mov rdx, qword [rsp + 0xc0]
lea rcx, str.Failed_to_delete_service__s_n
call fcn.140004490
jmp 0x1400020ff
mov rdx, qword [rsp + 0xc0]
lea rcx, str.Service__S_removed_successfully_n
call fcn.140004490
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.Exiting_Unistal_service_n
call fcn.140004490
add rsp, 0xb8
ret
Function at 0x140002130
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, str.Entering_InstallService...._n
call fcn.140004490
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140002189
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov edx, dword [rsp + 0x78]
lea rcx, [0x140007a78]
call fcn.140004490
jmp 0x1400022c7
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x14000223a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0xb8]
lea rcx, str.Failed_to_create_service__s__error_code___d_n
call fcn.140004490
jmp 0x1400022b0
lea rcx, str.Changing_the_Service_Description_n
call fcn.140004490
lea r11, str.Host_Storage_Service_for_Persisting_CV_Objects_into_Hard_drive
mov qword [rsp + 0x90], r11
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140002296
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov edx, dword [rsp + 0x98]
lea rcx, str.Failed_to_change_the_service_desc__error_code___d_n
call fcn.140004490
jmp 0x1400022a2
lea rcx, str.Service_description_is_set_n
call fcn.140004490
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.Service_Installed_Successfully...._n
call fcn.140004490
add rsp, 0xa8
ret

Function at 0x140002450
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a978]
test rax, rax
je 0x140002493
lea rcx, [0x140006980]
call fcn.140004490
xor edx, edx
mov rcx, qword [0x14000a978]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14000a978]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14000a978], 0
add rsp, 0x28
ret
Function at 0x140002700
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140002760
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.IsWin8OrGreater_GetVersionEx_failed_gle_d_n
call fcn.140004490
xor al, al
jmp 0x14000277f
cmp dword [rsp + 0x34], 6
jae 0x14000276b
xor al, al
jmp 0x14000277f
cmp dword [rsp + 0x34], 6
jne 0x14000277d
cmp dword [rsp + 0x38], 1
ja 0x14000277d
xor al, al
jmp 0x14000277f
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001070
add rsp, 0x160
pop rdi
ret

Function at 0x140003b10
Capabilities:
Create thread

Disassembly:
mov word [rsp + 8], cx
sub rsp, 0x38
movzx eax, word [rsp + 0x40]
mov word [0x14000a970], ax
mov rax, qword [0x14000a978]
test rax, rax
je 0x140003b36
call fcn.140002450
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [0x14000a970]
lea r8, [0x1400036b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14000a978], rax
mov rax, qword [0x14000a978]
test rax, rax
jne 0x140003b82
lea rcx, str.Host_storage_thread_creation_failed_n
call fcn.140004490
xor al, al
jmp 0x140003b90
lea rcx, str.Created_host_storage_thread_n
call fcn.140004490
mov al, 1
add rsp, 0x38
ret

Function at 0x140004220
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x38], 0
lea rax, str.SOFTWAREBroadcomhoststoragesvc
mov qword [rsp + 0x40], rax
lea rax, str.Log_Enable
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0xffffffff
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x1400042db
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x50], 1
jne 0x1400042c6
mov dword [0x14000adbc], 1
jmp 0x1400042d0
mov dword [0x14000adbc], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x68
ret
Function at 0x140004520
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 1
mov ecx, 0x104
call qword [sym.imp.MSVCR90.dll_malloc]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax], r11
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x14000456c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_Allocation_failed__error_code___d
call fcn.140004490
mov byte [rsp + 0x20], 0
jmp 0x1400045a8
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call sub.MSVCR90.dll_memset
mov r8d, 0x104
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx]
lea rcx, str._programdata_BroadcomHostStorage_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, str.Host_Storage_location_set_successfully.
call fcn.140004490
mov al, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400045c0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub rsp, 0x6f8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov qword [rsp + 0x4c8], 0xffffffffffffffff
mov dword [rsp + 0x4c0], 0
mov dword [rsp + 0x290], 0
mov qword [rsp + 0x4b8], 0
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x4b0], 0
lea rcx, [rsp + 0x4b8]
call fcn.140004520
movzx eax, al
test eax, eax
jne 0x140004635
jmp 0x140004771
mov rcx, qword [rsp + 0x4b8]
call qword [sym.imp.MSVCR90.dll_wcslen]
mov r9, rax
add r9, 1
mov r8, qword [rsp + 0x4b8]
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
mov r9d, 3
lea r8, [0x140008118]
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.MSVCR90.dll_wcsncat_s]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x4c8], rax
cmp qword [rsp + 0x4c8], 0xffffffffffffffff
jne 0x1400046ba
jmp 0x140004771
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x4c8]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140004740
mov eax, dword [rsp + 0x40]
and eax, 0x10
test eax, eax
je 0x1400046de
jmp 0x14000473b
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x4b8]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.MSVCR90.dll_swprintf_s]
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x290], eax
cmp dword [rsp + 0x290], 0
jne 0x14000473b
mov rcx, qword [rsp + 0x4c8]
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140004771
jmp 0x1400046ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c0], eax
mov rcx, qword [rsp + 0x4c8]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [rsp + 0x4c0], 0x12
je 0x140004769
jmp 0x140004771
mov byte [rsp + 0x4b0], 1
cmp qword [rsp + 0x4b8], 0
je 0x140004796
mov rcx, qword [rsp + 0x4b8]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0x4b8], 0
mov al, byte [rsp + 0x4b0]
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.140001070
add rsp, 0x6f8
ret
Function at 0x1400047c0
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x2f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xc0], 0
mov byte [rsp + 0xc4], 0
mov byte [rsp + 0x40], 0
lea rdi, [rsp + 0x41]
xor eax, eax
mov ecx, 0x78
rep stosb byte [rdi], al
lea rcx, [rsp + 0xc8]
call fcn.140004520
movzx eax, al
test eax, eax
jne 0x140004828
jmp 0x14000488c
mov eax, dword [rsp + 0x300]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xc8]
lea r8, str._s_d.bcm
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCR90.dll_swprintf_s]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jne 0x140004878
jmp 0x14000488c
mov byte [rsp + 0xc4], 1
lea rcx, str.Objects_Deleted_Successfully
call fcn.140004490
cmp qword [rsp + 0xc8], 0
je 0x1400048b1
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0xc8], 0
mov al, byte [rsp + 0xc4]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140001070
add rsp, 0x2f0
pop rdi
ret
Function at 0x140004c30
Capabilities:
Create directory
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x320
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x318], rax
mov qword [rsp + 0xf8], 0
xor eax, eax
mov word [rsp + 0x100], ax
lea rdi, [rsp + 0x102]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov qword [rsp + 0xe0], 0
mov byte [rsp + 0xd8], 0
mov qword [rsp + 0xe8], 0
mov dword [rsp + 0xd4], 0
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0xf0], 0
mov byte [rsp + 0x50], 0
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x78
rep stosb byte [rdi], al
lea rcx, [rsp + 0xf8]
call fcn.140004520
movzx eax, al
test eax, eax
jne 0x140004cf0
jmp 0x140004ebe
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.MSVCR90.dll__waccess]
cmp eax, 0xffffffff
jne 0x140004d23
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140004d23
jmp 0x140004ebe
mov eax, dword [rsp + 0x330]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xf8]
lea r8, [0x140007f90]
mov edx, 0x104
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCR90.dll_swprintf_s]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0xffffffffffffffff
jne 0x140004dbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x310], eax
mov edx, dword [rsp + 0x310]
lea rcx, [0x140007fa8]
call fcn.140004490
jmp 0x140004ebe
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd0]
mov r8d, dword [rsp + 0x338]
mov rdx, qword [rsp + 0x340]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0xd4], eax
cmp dword [rsp + 0xd4], 0
jne 0x140004e29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x314], eax
mov edx, dword [rsp + 0x314]
lea rcx, str.WriteFile_failed___error_code___d
call fcn.140004490
jmp 0x140004ebe
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0xf0], eax
mov eax, dword [rsp + 0x338]
cmp dword [rsp + 0xf0], eax
jae 0x140004eaa
mov eax, dword [rsp + 0xf0]
mov r8d, dword [rsp + 0x338]
sub r8d, eax
mov eax, dword [rsp + 0xf0]
mov rdx, qword [rsp + 0x340]
add rdx, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd0]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0xd4], eax
mov ecx, dword [rsp + 0xd0]
mov eax, dword [rsp + 0xf0]
add eax, ecx
mov dword [rsp + 0xf0], eax
jmp 0x140004e37
mov byte [rsp + 0xd8], 1
lea rcx, str.Writing_into_Hard_drive_successfully_completed
call fcn.140004490
cmp qword [rsp + 0xe8], 0
je 0x140004ed7
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xf8], 0
je 0x140004efc
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0xf8], 0
mov al, byte [rsp + 0xd8]
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.140001070
add rsp, 0x320
pop rdi
ret
Function at 0x14000fe80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14000febe
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140010081
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x14000feeb
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
jmp 0x14000fef3
mov dword [rsp + 0x24], 0
movsxd rax, dword [rsp + 0x24]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x80], 0
jle 0x14001001a
cmp qword [rsp + 0x28], 0
jle 0x14001001a
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x80], rax
jge 0x14000ff34
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14000ffa0
mov qword [rsp + 0x30], 0
jmp 0x14000ff6b
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x30], rax
je 0x14000ff9e
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x78]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
mov byte [rax], cl
jmp 0x14000ff5e
jmp 0x14000ffb1
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x80], 0
jle 0x14001006e
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14001006e
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x80]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
pop rdi
pop rsi
ret