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

Disassembly:
push 4
mov eax, 0x100a1b27
call fcn.10094b6a
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [ebp + 0xc], bl
jne 0x1004e301
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.10084ad6
add eax, 0x10
mov dword [esi], eax
jmp 0x1004e36f
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp + 0x10]
call fcn.1003abec
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
lea eax, [ebp + 0xc]
call fcn.1005ff00
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.10084b37
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004e355
mov eax, dword [edi]
jmp 0x1004e35a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.10084ad6
add eax, 0x10
mov dword [esi], eax
lea eax, [ebx - 0x10]
call fcn.10084b37
mov eax, esi
call fcn.10094c56
ret 0xc

Function at 0x1004e3d3
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x100a1af7
call fcn.10094b6a
mov esi, ecx
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.1005f361
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x1004e430
lea eax, [ebp - 0x14]
push eax
call fcn.10028b91
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.1005f4dc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084b37
push dword [ebp + 8]
mov eax, edi
call fcn.1005fec1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004e453
push dword [ebp + 8]
mov esi, dword [esi + 4]
push 0x1000d960
push eax
call fcn.10026695
add esp, 0xc
jmp 0x1004e4a9
mov ebx, dword [ebp - 0x10]
mov ecx, esi
call fcn.1004e4cc
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
xor ebx, ebx
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
rep stosd dword es:[edi], eax
jmp 0x1004e49c
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
jne 0x1004e488
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084b37
call fcn.10094c56
ret 4
Function at 0x100513ad
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x100a3b63
call fcn.10094b6a
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
mov dword [esi + 0x1c], eax
mov edi, 0x1001d3bc
push edi
lea eax, [esi + 0x28]
push eax
mov dword [esi], 0x1001c1f4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x14], bl
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
call fcn.1005f361
push edi
lea eax, [esi + 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.1005f361
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.10051354
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [esi + 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.1004eb3a
cmp dword [ebp - 0x18], ebx
je 0x10051430
push dword [ebp - 0x18]
call fcn.10087e29
pop ecx
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], 0xa
or dword [esi + 0x84], 0xffffffff
mov byte [esi + 0x70], bl
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x88], ebx
mov byte [ebp - 4], 6
cmp byte [0x100c4402], 1
mov edi, dword [sym.imp.msi.dll_MsiSetPropertyW]
jne 0x10051489
push ebx
push 3
call edi
mov byte [0x100c4402], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10026b5d
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
mov dword [ebp + 0xc], 0x102
call fcn.10026f17
test al, al
jne 0x100514b7
mov dword [ebp + 0xc], 2
push ebx
push dword [ebp + 0xc]
call edi
push ebx
push esi
push 0x932
push 0x100515e0
call dword [sym.imp.msi.dll_MsiBeginTransactionW]
push esi
push 0x7fdf
push 0x100515c4
call dword [sym.imp.msi.dll_MsiSetInternalUI]
lea ecx, [ebp - 0x30]
mov dword [esi + 0x88], eax
call fcn.10026eb8
mov eax, esi
call fcn.10094c56
ret 0x18
Function at 0x10052c5c
Capabilities:
Acquire debug privileges

Disassembly:
push 0x14
mov eax, 0x1009f688
call fcn.10094b6a
mov ebx, ecx
call fcn.10052670
push ecx
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x1000f678
push eax
call fcn.1005f361
mov cl, 1
mov edx, ebx
call fcn.10053238
mov ecx, dword [ebx + 0x2c]
mov esi, eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x20]
xor edi, edi
cmp eax, edi
jne 0x10052cd0
push 0x1000f5dc
lea eax, [ebp - 0x10]
push eax
call fcn.1005f361
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], edi
call fcn.1002b2a7
push 0x100aae48
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x1001afe4
call fcn.1008e3d9
push edi
push edi
push ecx
call eax
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, edi
je 0x10052ced
mov edi, dword [ebx + 0x34]
push 0x1000f69c
push 1
call fcn.1002a420
mov byte [ebx + 0x38], 1
test esi, esi
je 0x10052d04
push esi
xor eax, eax
call fcn.100532b4
push esi
call fcn.10086dd1
pop ecx
call fcn.10052650
mov eax, dword [eax + 4]
test eax, eax
je 0x10052d15
push dword [ebp - 0x14]
call eax
mov eax, dword [ebp - 0x10]
call fcn.10094c56
ret

Function at 0x10052d9a
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov ebx, eax
mov esi, ecx
call fcn.10075585
call fcn.10052a56
test eax, eax
jne 0x10052e3e
call fcn.10052670
push ecx
mov dword [ebp - 8], eax
mov eax, esp
mov dword [ebp - 4], esp
push 0x1000f678
push eax
call fcn.1005f361
mov cl, 1
mov edx, esi
call fcn.10053238
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.1005319f
mov dword [ebp + 8], eax
test eax, eax
jne 0x10052e0f
cmp dword [ebp + 0xc], eax
je 0x10052e0f
test byte [edi], 2
je 0x10052e0f
push ebx
mov ecx, esi
call fcn.10052e4a
test al, al
je 0x10052e0f
push edi
call fcn.1005319f
mov dword [ebp + 8], eax
cmp dword [ebp - 4], 0
je 0x10052e2a
push dword [ebp - 4]
xor eax, eax
mov ebx, esi
call fcn.100532b4
push dword [ebp - 4]
call fcn.10086dd1
pop ecx
call fcn.10052650
mov eax, dword [eax + 4]
test eax, eax
je 0x10052e3b
push dword [ebp - 8]
call eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100536be
Capabilities:
Query service status

Disassembly:
push 0x34
mov eax, 0x1009c389
call fcn.10094bdd
mov eax, dword [0x100bcf90]
xor ebx, ebx
mov ecx, 0x100bcf90
mov byte [ebp - 0x35], bl
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
push 5
push 0x10007434
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
je 0x10053761
push 4
push 0x1000fd10
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edx, eax
cmp edx, ebx
je 0x10053753
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push edx
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10053745
cmp dword [ebp - 0x30], 1
je 0x10053740
test byte [ebp - 0x2c], 1
jne 0x10053740
mov byte [ebp - 0x35], 1
jmp 0x10053785
mov byte [ebp - 0x35], bl
jmp 0x10053785
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1000fd28
jmp 0x1005376d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1000fd70
jmp 0x1005376d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1000fda8
lea eax, [ebp - 0x3c]
push eax
call fcn.100847a7
mov eax, dword [esi]
add esp, 0xc
push dword [ebp - 0x3c]
mov ecx, esi
push 5
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.10084b37
mov al, byte [ebp - 0x35]
call fcn.10094c6f
ret
Function at 0x1005379e
Capabilities:
Accept command line arguments

Disassembly:
push 0x20
mov eax, 0x100a3a47
call fcn.10094b6a
mov ebx, ecx
cmp byte [0x100c68dc], 0
jne 0x10053911
mov esi, edi
call fcn.100536be
test al, al
je 0x10053911
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x1001d3bc
push eax
call fcn.1005f361
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 0xd
call dword [eax + 8]
mov dword [ebp - 0x10], 0x3c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10026b5d
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
call fcn.10026f17
test al, al
jne 0x10053811
mov dword [ebp - 0x10], 0x258
push dword [ebp - 0x10]
mov esi, edi
push 0x1000fde8
push 2
call fcn.10026695
and dword [ebp - 0x14], 0
add esp, 0xc
cmp dword [ebp - 0x10], 0
jle 0x1005385f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 0
call dword [eax]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebx + 4], 0
jne 0x1005388c
mov esi, edi
call fcn.100536be
test al, al
je 0x100538a8
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jl 0x1005382f
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 2
je 0x100538ba
cmp eax, 5
mov eax, dword [edi]
mov ecx, edi
je 0x100538fe
push 0x100100c8
push 2
call dword [eax + 4]
mov dword [ebp - 0x10], 1
jmp 0x10053811
mov eax, dword [edi]
push 0x1000fe90
push 2
mov ecx, edi
call dword [eax + 4]
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.10026eb8
mov al, bl
jmp 0x10053913
mov eax, dword [edi]
push 0x1000fef4
push 2
mov ecx, edi
call dword [eax + 4]
mov bl, 1
jmp 0x1005389c
push 0x1000ff24
lea eax, [ebp + 0xc]
push eax
call fcn.1005f361
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
call fcn.100620e4
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [edi]
push 0x1000ff38
push 2
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
jmp 0x1005389a
push 0x1000fff0
push 2
call dword [eax + 4]
mov byte [0x100c68dc], 1
jmp 0x100538b6
mov al, 1
call fcn.10094c56
ret 0xc
Function at 0x10053bbd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [esi + 4], bl
je 0x10053c62
cmp dword [esi + 0x18], ebx
jne 0x10053c62
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x10053bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10053c5d
push edi
push 0x10
call fcn.100878a8
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x10053c0e
mov dword [ebp - 4], 0xe
jmp 0x10053c5c
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi], esi
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10053c30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push edi
push 0x10053c71
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x10053c5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
pop edi
mov eax, dword [ebp - 4]
jmp 0x10053c67
mov eax, 0x10dd
pop ebx
leave
ret 0xc

Function at 0x10053eda
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [esi + 0x2c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebx, [esi + 0x1c]
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10053f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x10053f5f
mov eax, dword [esi + 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
test edi, edi
jne 0x10053f4b
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10053f79
jmp 0x10053f50
cmp edi, 0xffffffff
jne 0x10053f5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10053f5f
mov edi, 0x3e3
test edi, edi
je 0x10053f79
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov byte [esi + 0x39], 0
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x1005402d
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 0x1005404f
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 0x10054087
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 0x10054081
mov eax, dword [ebp - 8]
lea ebx, [ebx + eax*2 + 2]
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x1005405d
mov edi, ebx
call fcn.100542b0
test eax, eax
jne 0x1005409a
push 0xe
pop eax
jmp 0x10054194
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 0x10054127
cmp edi, dword [ebp - 0x10]
jae 0x10054127
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 0x1005410c
mov eax, dword [ebp - 0x10]
sub eax, edi
sar eax, 1
cmp dword [ebp + 8], eax
jge 0x1005410c
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 0x100540c4
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 0x10054191
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [ebp + 0xc], eax
cmp eax, 0x3e5
jne 0x1005417a
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 0x10054191
call ebx
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x10054191
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 0x100541a0
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 0x10054219
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x10054204
push dword [esi + 0x3c]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
jne 0x10054208
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 0x10054219
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x10054219
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 0x10054226
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 0x10054258
and dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100542a7
lea ecx, [esi + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1005426d
mov byte [esi + 0x39], 1
jmp 0x100542a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xe7
jne 0x10054299
push 0x4e20
push dword [esi + 0xc]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x10054267
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x100542a7
xor edi, edi
mov byte [esi + 0x38], 1
mov eax, edi
pop edi
ret
Function at 0x10059051
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x34
mov eax, 0x1009f4b7
call fcn.10094b6a
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [esi], 0x1001cd5c
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.1005f361
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100590a7
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1001d3bc
xor ebx, ebx
mov eax, edi
call fcn.10084807
add esi, 0xc
push dword [esi]
lea eax, [ebp - 0x10]
push eax
call fcn.1005f361
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10059188
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10059188
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
lea eax, [edi + 1]
push eax
call fcn.100849b4
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.1008472b
test edi, edi
je 0x10059177
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 0x10011b28
push eax
call fcn.100847a7
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.10084b37
push 0x1001d3bc
xor ebx, ebx
mov eax, esi
call fcn.10084807
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esi]
sub eax, 0x10
call fcn.10084b37
mov eax, dword [edi]
sub eax, 0x10
call fcn.10084b37
call fcn.10094c56
ret
Function at 0x100591e1
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x1009f469
call fcn.10094b6a
push dword [ecx + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.1005f361
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.1005f361
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1006000d
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.1005fec1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005927a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084ad6
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.1005f4dc
lea eax, [esi - 0x10]
call fcn.10084b37
mov bl, 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084b37
mov al, bl
call fcn.10094c56
ret 8
mov esi, dword [ebp + 0xc]
call fcn.100847c0
jmp 0x1005925a

Function at 0x1005b131
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.1002b0b1
test eax, eax
js 0x1005b15d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005b15d
pop esi
jmp fcn.100845fb
pop esi
ret

Function at 0x1005c159
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x100a36bd
call fcn.10094b6a
lea eax, [ebp - 0x14]
push eax
call fcn.10028c22
and dword [ebp - 4], 0
push 0x10012540
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x14]
call fcn.1005fcf3
push 0x100124f0
lea ecx, [ebp - 0x18]
push ecx
mov edi, eax
mov byte [ebp - 4], 1
call fcn.1005fcf3
push 0x10012490
lea ecx, [ebp - 0x10]
push ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.1005fcf3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084b37
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10084b37
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.10026b5d
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.10026ee3
test al, al
jne 0x1005c216
push 0
push 0x10003658
lea eax, [ebp - 0x30]
push eax
call fcn.100266fe
test al, al
jne 0x1005c216
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.10026eb8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084b37
call fcn.10094c56
ret 4