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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [ebp - 0xc], edi
cmp dword [ebp + 0xc], edi
je 0x1005415f
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordIsNull]
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
push 0xc
pop ebx
mov word [ebp - 4], ax
cmp dword [ebp - 0xc], eax
jbe 0x10054197
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x10054191
mov eax, dword [ebp - 8]
lea ebx, [ebx + eax*2 + 2]
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x1005416d
mov edi, ebx
call fcn.100543c0
test eax, eax
jne 0x100541aa
push 0xe
pop eax
jmp 0x100542a4
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp + 8]
and dword [ebp - 8], 0
mov dword [eax], ebx
mov eax, dword [esi + 0x30]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x30]
lea edi, [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x10054237
cmp edi, dword [ebp - 0x10]
jae 0x10054237
xor eax, eax
mov word [edi], ax
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x1005421c
mov eax, dword [ebp - 0x10]
sub eax, edi
sar eax, 1
cmp dword [ebp + 8], eax
jge 0x1005421c
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov ecx, dword [ebp + 8]
xor eax, eax
inc dword [ebp - 8]
mov word [edi + ecx*2], ax
mov eax, dword [ebp + 8]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jb 0x100541d4
push dword [esi + 0x2c]
and dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edi, [esi + 0x1c]
push edi
push 0
push ebx
push dword [esi + 0x30]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100542a1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [ebp + 0xc], eax
cmp eax, 0x3e5
jne 0x1005428a
and dword [ebp + 0xc], 0
push 1
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x100542a1
call ebx
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x100542a1
push dword [esi + 0x10]
mov byte [esi + 0x39], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100542b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [esi + 0x2c]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edi, [esi + 0x1c]
push edi
push ebx
push 4
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10054329
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x10054314
push dword [esi + 0x3c]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
jne 0x10054318
push eax
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10054329
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x10054329
push dword [esi + 0x10]
mov byte [esi + 0x39], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x10054336
Capabilities:
Connect pipe
Create pipe

Disassembly:
push edi
xor edi, edi
push edi
push edi
mov eax, 0x400
push eax
push eax
push 1
push edi
push 0x40080003
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x10054368
and dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100543b7
lea ecx, [esi + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1005437d
mov byte [esi + 0x39], 1
jmp 0x100543b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xe7
jne 0x100543a9
push 0x4e20
push dword [esi + 0xc]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x10054377
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x100543b7
xor edi, edi
mov byte [esi + 0x38], 1
mov eax, edi
pop edi
ret
Function at 0x10059167
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x34
mov eax, 0x1009f476
call fcn.10094bba
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [esi], 0x1001cd84
lea edi, [esi + 8]
mov dword [ebp - 4], 1
push dword [edi]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x20], edi
call fcn.1005f448
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100591bd
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1001d3e4
xor ebx, ebx
mov eax, edi
call fcn.100848f9
add esi, 0xc
push dword [esi]
lea eax, [ebp - 0x10]
push eax
call fcn.1005f448
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1005929e
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005929e
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
lea eax, [edi + 1]
push eax
call fcn.10084aa6
mov edx, eax
xor eax, eax
mov word [edx + edi*2 + 2], ax
push 6
pop ecx
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x40], 0
and dword [ebp - 0x34], 0
mov eax, 0x414
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
or eax, 0xffffffff
call fcn.1008481d
test edi, edi
je 0x1005928d
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
mov byte [ebp - 4], 4
push dword [esi]
lea eax, [ebp - 0x14]
push 0x10011b58
push eax
call fcn.10084899
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
add esp, 0x10
push edi
push 1
call dword [eax + 4]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
call fcn.10084c29
push 0x1001d3e4
xor ebx, ebx
mov eax, esi
call fcn.100848f9
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [esi]
sub eax, 0x10
call fcn.10084c29
mov eax, dword [edi]
sub eax, 0x10
call fcn.10084c29
call fcn.10094ca6
ret
Function at 0x100592f7
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x1009f428
call fcn.10094bba
push dword [ecx + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.1005f448
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.1005f448
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.100600f4
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.1005ffa8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10059390
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084bc8
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.1005f5c3
lea eax, [esi - 0x10]
call fcn.10084c29
mov bl, 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084c29
mov al, bl
call fcn.10094ca6
ret 8
mov esi, dword [ebp + 0xc]
call fcn.100848b2
jmp 0x10059370

Function at 0x1005b247
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x18]
xor eax, eax
push eax
push eax
push eax
add esi, 0x10
push esi
call fcn.1002b0df
test eax, eax
js 0x1005b273
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005b273
pop esi
jmp fcn.100846ed
pop esi
ret
Function at 0x1005bc8a
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x100a3727
call fcn.10094bba
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.1005f448
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.10028e4e
mov eax, dword [eax]
push ebx
push 0x80
push 3
push 1
push SysReAllocStringLen
push eax
lea edi, [ebp - 0x2c]
call fcn.1002b057
mov edi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084c29
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084c29
cmp edi, ebx
jge 0x1005bd87
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.1005f448
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push 0x100121c8
push eax
call fcn.10084899
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0xfffffff0
call fcn.10084c29
push dword [ebp - 0x14]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1002b2d5
mov esi, 0x1001afe8
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.1002d363
mov dword [ebp - 0x34], esi
push 0x100aadb4
lea eax, [ebp - 0x34]
push eax
call fcn.1008e427
push ebx
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x1005bda7
call fcn.100846ed
cmp byte [ebp - 0x10], 0xff
jne 0x1005bdc9
cmp byte [ebp - 0xf], 0xfe
jne 0x1005bdc9
cmp dword [ebp - 0x2c], ebx
je 0x1005bdc1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10094ca6
ret 4
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x10012218
push eax
call fcn.10084899
mov eax, dword [esi]
add esp, 0xc
push dword [ebp - 0x14]
mov ecx, esi
push ebx
call dword [eax + 4]
push 0x1000593c
lea eax, [ebp + 8]
push eax
call fcn.1005f448
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.1002b334
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084c29
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.1002d31f
push 0x100aac80
lea eax, [ebp - 0x20]
jmp 0x1005bd81
Function at 0x1005c260
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x100a36c7
call fcn.10094bba
lea eax, [ebp - 0x14]
push eax
call fcn.10028c50
and dword [ebp - 4], 0
push 0x10012568
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x14]
call fcn.1005fdda
push 0x10012518
lea ecx, [ebp - 0x18]
push ecx
mov edi, eax
mov byte [ebp - 4], 1
call fcn.1005fdda
push 0x100124b8
lea ecx, [ebp - 0x10]
push ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.1005fdda
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084c29
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10084c29
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10026b8b
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.10026f11
test al, al
jne 0x1005c31d
push 0
push 0x10003658
lea eax, [ebp - 0x30]
push eax
call fcn.1002672c
test al, al
jne 0x1005c31d
push 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x34]
call fcn.10026ee6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084c29
call fcn.10094ca6
ret 4
Function at 0x1005c4a7
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x100a1611
call fcn.10094bba
xor ebx, ebx
push ebx
push 0x100c4354
mov edi, 0x100c4218
push edi
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp + 8]
call fcn.10094655
add esp, 0x14
cmp eax, ebx
je 0x1005c4ee
lea esi, [ebp - 0x18]
call fcn.10046edf
mov eax, dword [eax]
mov dword [ebp - 0x14], 1
mov byte [ebp - 0xd], 1
cmp dword [eax - 0xc], ebx
je 0x1005c4f1
mov byte [ebp - 0xd], bl
test byte [ebp - 0x14], 1
je 0x1005c502
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084c29
cmp byte [ebp - 0xd], bl
je 0x1005c662
push ebx
push 0x100c4258
push edi
push ebx
push dword [ebp + 8]
call fcn.10094655
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x1005c66c
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.1003ab8e
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084c29
cmp dword [ebp - 0x1c], ebx
je 0x1005c5ab
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.1003ab8e
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.10028bbf
mov byte [ebp - 4], 2
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x14]
call fcn.1005ffe7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10084c29
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084c29
jmp 0x1005c5d5
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.1003ab8e
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.1005f5c3
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10084c29
mov edi, 0x100c4218
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005c65a
push ebx
push 0x100c43bc
push edi
push ebx
push dword [ebp + 8]
call fcn.10094655
add esp, 0x14
cmp eax, ebx
je 0x1005c611
cmp dword [eax + 0x134], 4
jne 0x1005c611
mov bl, 1
lea eax, [esi - 0x10]
call fcn.10084c29
mov al, bl
jmp 0x1005c664
push 0x10012668
lea eax, [ebp + 8]
push eax
call fcn.1005f448
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.1005fd84
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 5
push dword [eax]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084c29
jmp 0x1005c605
lea eax, [esi - 0x10]
call fcn.10084c29
mov al, 1
call fcn.10094ca6
ret 8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 0x10012734
push ebx
call dword [eax + 4]
xor al, al
jmp 0x1005c664
Function at 0x1005c683
Capabilities:
Check mutex on windows

Disassembly:
push 0
mov eax, 0x1009b5f5
call fcn.10094bba
mov edi, ecx
mov ebx, dword [ebp + 8]
and dword [ebx], 0
lea esi, [ebx + 4]
mov ecx, 0x100bcf90
call fcn.10084b65
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 8], ecx
mov byte [ebx + 0x14], 0
mov dword [ebx + 0x18], eax
cmp byte [edi + 8], 0
je 0x1005c736
add edi, 4
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
push 0x10012768
lea eax, [ebp + 0xc]
push eax
je 0x1005c6ea
call fcn.1005fe35
mov byte [ebp - 4], 1
jmp 0x1005c6f5
mov edi, ecx
call fcn.1005fe35
mov byte [ebp - 4], 2
mov edi, esi
call fcn.1005f5c3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10084c29
push dword [esi]
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebx], eax
cmp eax, edi
jne 0x1005c73a
push dword [esi]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1005c73a
mov byte [ebx + 0x14], 1
mov eax, ebx
call fcn.10094ca6
ret 0x14

Function at 0x1005cd6d
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
mov dword [esi], 0x1001cfec
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 4]
sub eax, 0x10
pop esi
jmp fcn.10084c29
Function at 0x1005e4e6
Capabilities:
Accept command line arguments

Disassembly:
push 0x20
mov eax, 0x100a5510
call fcn.10094bba
mov esi, dword [ebp + 8]
mov dword [esi], 0x1001d058
xor ebx, ebx
mov dword [esi + 4], 0x1001b07c
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x20], 0x1001b0cc
mov byte [ebp - 4], 1
push 0xc00
mov dword [esi + 0x3c], ebx
call fcn.10088115
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x1005e557
push eax
call fcn.1002ac34
jmp 0x1005e559
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x100c68d4], eax
call fcn.1002a783
push 4
call fcn.10088115
pop ecx
cmp eax, ebx
je 0x1005e57b
mov dword [eax], 0x1001d060
jmp 0x1005e57d
xor eax, eax
push 0x1001d2c0
mov dword [0x100c68e0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x1005e5ae
push 0x1001614c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], 0x20000
cmp eax, ebx
je 0x1005e5ae
lea ecx, [ebp - 0x14]
push ecx
call eax
push 0x1006cb16
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10026b8b
mov byte [ebp - 4], 3
call fcn.10072a4f
mov edi, eax
lea eax, [ebp - 0x2c]
call fcn.10026f45
mov ecx, dword [0x100c68d4]
neg al
sbb al, al
inc al
mov byte [ecx], al
mov eax, dword [0x100c68d4]
push ebx
mov dword [eax + 0x990], edi
push 0x10003658
lea eax, [ebp - 0x28]
push eax
call fcn.1002672c
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x2c]
call fcn.10026f11
mov ecx, dword [0x100c68d4]
mov dword [ecx + 0xbf0], 1
cmp byte [ebp - 0xd], bl
je 0x1005e62e
mov dword [ecx + 0xbf0], 3
cmp al, bl
je 0x1005e63c
mov dword [ecx + 0xbf0], 2
lea ecx, [ebp - 0x2c]
call fcn.10026ee6
mov eax, esi
call fcn.10094ca6
ret 4
Function at 0x1005e971
Capabilities:
Accept command line arguments

Disassembly:
push 0xc4
mov eax, 0x1009f2b1
call fcn.10094c2d
mov ebx, 0x10003594
push ebx
lea eax, [ebp - 0xc4]
push eax
call fcn.1005f448
and dword [ebp - 4], 0
mov edi, 0x10012e7c
push edi
lea eax, [ebp - 0xd0]
push eax
call fcn.1005f448
mov byte [ebp - 4], 1
lea eax, [ebp - 0xc4]
push ebx
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], esi
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 2
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0xc0]
push 0x10012ea4
push eax
call fcn.10084899
mov edi, dword [ebp - 0xc0]
mov eax, dword [esi]
add esp, 0xc
push edi
push 7
mov ecx, esi
call dword [eax + 4]
and dword [ebp - 0xbc], 0
push 0xa8
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.1008a830
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 1
jne 0x1005ea47
lea eax, [ebp - 0xb8]
jmp 0x1005ea4f
cmp eax, 2
jne 0x1005ea9e
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xc0]
push 0x10012ec8
push eax
call fcn.10084899
mov eax, dword [esi]
add esp, 0xc
push dword [ebp - 0xc0]
mov ecx, esi
push 7
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
lea eax, [ebp - 0xc0]
push 0x10012ee4
push eax
call fcn.10084899
mov edi, dword [ebp - 0xc0]
mov eax, dword [esi]
add esp, 0xc
push edi
push 7
mov ecx, esi
call dword [eax + 4]
lea eax, [edi - 0x10]
call fcn.10084c29
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 0
call fcn.10026674
mov eax, dword [ebp - 0xc4]
add eax, 0xfffffff0
call fcn.10084c29
call fcn.10094cbf
ret
Function at 0x100605f8
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x100a351d
call fcn.10094bba
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10026b8b
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
call fcn.10026f45
test al, al
je 0x1006065a
cmp dword [esi + 4], 0
je 0x1006065a
mov eax, dword [esi + 8]
cmp eax, 3
je 0x10060639
cmp eax, 2
jne 0x10060648
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x10060648
mov eax, dword [esi + 8]
mov esi, eax
lea ecx, [ebp - 0x24]
call fcn.10026ee6
mov eax, esi
call fcn.10094ca6
ret
mov esi, dword [esi + 8]
jmp 0x1006064a
Function at 0x10061af0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a124e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100bc210]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ebx, edx
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
call dword [eax + 8]
test al, al
je 0x10061c86
call fcn.100683fc
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x248], edi
call fcn.1002b187
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1005f448
mov byte [esp + 0x248], 1
cmp dword [esp + 0x24], edi
je 0x10061b97
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esi + 0x3c]
mov eax, dword [edi]
push 2
push 0xa
push dword [esp + 0x18]
mov ecx, edi
push dword [edi + 4]
call dword [eax + 8]
mov ebx, 0xffff
mov esi, 0x80070000
test eax, eax
jne 0x10061bd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10061bd5
and eax, ebx
or eax, esi
test eax, eax
js 0x10061c1d
mov eax, dword [edi]
push 0
push 1
push 0
push 0x100065c0
push dword [esp + 0x20]
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
jne 0x10061c01
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10061c17
and eax, ebx
or eax, esi
jmp 0x10061c15
mov eax, dword [edi]
push 2
push 0xea60
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
je 0x10061bf1
xor eax, eax
test eax, eax
js 0x10061c1d
mov byte [edi + 8], 1
mov esi, eax
push 0x10013690
lea eax, [esp + 0x18]
push eax
call fcn.1005f448
push esi
push dword [esp + 0x1c]
lea edi, [esp + 0x1c]
mov byte [esp + 0x250], 2
call fcn.10068fcb
mov byte [esp + 0x248], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.10084bc8
mov edi, dword [esp + 0x1c]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.10084c29
lea esi, [esp + 0x24]
call fcn.1002b157
mov eax, edi
jmp 0x10061c93
push 0x1001d3e4
push ebx
call fcn.1005f448
mov eax, ebx
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.10086e31
mov esp, ebp
pop ebp
ret

Function at 0x10062d01
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x100a1200
call fcn.10094c2d
and dword [ebp - 4], 0
and dword [ebp - 0x21c], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x220], esi
call fcn.1008a830
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1005f448
and dword [ebp - 4], 0
mov eax, esi
mov dword [ebp - 0x21c], 1
call fcn.10067c4b
mov eax, esi
call fcn.10094cbf
ret