joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013479
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push 0x1c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10134bd
mov eax, 0x8007000e
push eax
push 0xb0
push 0x1002350
push 0x1002320
mov dword [ebp - 4], eax
call fcn.0101159d
jmp 0x1013668
push edi
push 7
pop ecx
xor eax, eax
mov edi, ebx
push 0x1002308
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x1013516
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10134ec
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jne 0x10134fa
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xb7
push 0x1002350
push 0x1002320
call fcn.0101159d
jmp 0x1013667
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10022fc
push eax
call esi
xor edi, edi
mov dword [ebx + 4], eax
cmp eax, edi
jne 0x101355d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1013542
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1013550
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xbe
jmp 0x101364e
push 0x10022dc
push dword [ebx]
call esi
mov dword [ebx + 8], eax
cmp eax, edi
jne 0x101359c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1013581
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x101358f
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xc5
jmp 0x101364e
push 0x10022c8
push dword [ebx]
call esi
mov dword [ebx + 0xc], eax
cmp eax, edi
jne 0x10135d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10135c0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x10135ce
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xcc
jmp 0x101364e
push 0x10022b4
push dword [ebx]
call esi
mov dword [ebx + 0x10], eax
cmp eax, edi
jne 0x1013614
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10135fc
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x101360a
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xd3
jmp 0x101364e
push 0x10022a0
push dword [ebx]
call esi
mov dword [ebx + 0x14], eax
cmp eax, edi
jne 0x101365f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1013638
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1013646
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xda
push 0x1002350
push 0x1002320
call fcn.0101159d
jmp 0x1013666
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor ebx, ebx
pop esi
pop edi
push ebx
call fcn.0101341e
mov eax, dword [ebp - 4]
pop ebx
leave
ret 4
Function at 0x1013cd5
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1049010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
push 8
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x1013d39
mov edi, 0x8007000e
push edi
push 0x291
push 0x1002350
push 0x10024fc
call fcn.0101159d
jmp 0x1013e04
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push 0x10024ec
mov dword [esi + 0x10], eax
push 0x10024d8
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 4], 0x1012892
mov dword [esi + 8], 0x101206b
call fcn.01013a97
mov edi, eax
test edi, edi
jge 0x1013d73
push edi
push 0x29f
jmp 0x1013d25
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
je 0x1013d9a
jle 0x1013d90
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x2a7
jmp 0x1013d25
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call fcn.0101367b
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x1013db9
push edi
push 0x2aa
jmp 0x1013d25
mov ecx, dword [ebp - 0x18]
push eax
push eax
push esi
push 0x101372f
push eax
push eax
mov dword [esi + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1013dfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1013de7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x1013df2
mov edi, 0x80004005
push edi
push 0x2bc
jmp 0x1013d25
xor esi, esi
and dword [ebp - 0x18], esi
mov dword [ebx], eax
push dword [ebp - 0x18]
call fcn.0101341e
test esi, esi
je 0x1013e20
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010106b6
leave
ret 0x10
Function at 0x10140d2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
xor esi, esi
push 0x30
lea eax, [ebp - 0x4c]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x50], esi
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
add esp, 0xc
cmp edi, esi
jne 0x1014113
mov esi, 0x80004005
jmp 0x10141e2
push 0x3e8
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x101415f
cmp eax, 0x80
je 0x101415f
cmp eax, 0x102
je 0x1014155
cmp eax, 0xffffffff
jne 0x1014109
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x1014149
mov esi, eax
jmp 0x10141e2
and eax, 0xffff
or eax, 0x80070000
jmp 0x1014142
mov esi, 0x800705b4
jmp 0x10141e2
lea eax, [ebp - 0x50]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10141c3
cmp dword [ebp - 0x2c], esi
je 0x10141a7
cmp dword [ebp - 0x24], esi
je 0x10141a7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10141c3
mov eax, 0xfeff
cmp word [ebp - 4], ax
je 0x10141d9
mov esi, 0xc1440129
jmp 0x10141d9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 2
push 0x1002530
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10141d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10141d7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x10141ef
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp esi, ebx
je 0x10142f3
cmp dword [ebp + 0xc], ebx
je 0x10142f3
push 0x3e8
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x1014261
cmp eax, 0x80
je 0x1014261
cmp eax, 0x102
je 0x101425a
cmp eax, 0xffffffff
je 0x1014240
mov esi, 0x80004005
jmp 0x1014298
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x101424e
mov esi, eax
jmp 0x1014298
and eax, 0xffff
or eax, 0x80070000
jmp 0x101424a
mov esi, 0x800705b4
jmp 0x1014298
push edi
push 2
push ebx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10142ac
call edi
test eax, eax
je 0x10142ac
call edi
cmp eax, ebx
jg 0x10142a0
mov esi, eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
and eax, 0xffff
or eax, 0x80070000
jmp 0x1014289
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10142b2
lea ecx, [ebp - 8]
push ecx
push 2
sub eax, edx
pop ecx
sar eax, 1
mul ecx
push edx
push eax
call fcn.01011021
mov esi, eax
cmp esi, ebx
jl 0x101428b
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101428b
jmp 0x1014283
mov esi, 0x80070057
jmp 0x1014298
Function at 0x1015316
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x1015375
cmp word [esi], bx
je 0x1015375
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x6200000
push 3
push ebx
push 7
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1015360
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test ebx, ebx
jne 0x1015371
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1015371
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x101537f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1015a8d
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], esi
je 0x1015b68
cmp dword [ebp + 0xc], esi
je 0x1015b68
push ebx
push edi
mov edi, dword [ebp + 0x10]
push 8
pop ebx
cmp edi, esi
jne 0x1015ac4
mov edi, 0x10026ac
mov dword [ebp + 0xc], ebx
jmp 0x1015ad5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, esi
lea eax, [esi + 0xa]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1015b07
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1015b00
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x1015b4d
mov dword [ebx], esi
test esi, esi
je 0x1015b1e
shr esi, 1
push edi
inc esi
push esi
lea eax, [ebx + 4]
push eax
call fcn.01011240
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x1015b4d
and dword [ebp - 0xc], 0
push 0x28
push dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x1015b4d
or eax, 0x10000000
mov dword [ebp - 4], eax
test ebx, ebx
je 0x1015b61
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop ebx
jmp 0x1015b6d
mov eax, 0x80070057
pop esi
leave
ret 0xc
Function at 0x1015e64
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1049010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x204
push esi
lea eax, [ebp - 0x208]
push ebx
push eax
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x20c], ebx
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x410]
push ebx
push eax
mov dword [ebp - 0x414], ebx
call sub.msvcrt.dll_memset
add esp, 0x18
push edi
mov dword [ebp - 0x428], 0x104
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
call fcn.010195b8
cmp eax, 0xfeedf001
jne 0x1015eeb
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x1015eeb
push edi
call fcn.010194aa
cmp esi, eax
jbe 0x1015efa
mov dword [ebp - 0x41c], 0x57
jmp 0x1016034
push ebx
push esi
push edi
call fcn.0101a061
mov dword [ebp - 0x418], eax
cmp eax, ebx
je 0x1016040
push edi
call fcn.01019810
test eax, eax
jns 0x1016040
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0101abc1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1015ffd
xor eax, eax
cmp ax, word [ebp - 0x414]
je 0x1015ffd
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x10026b0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1015ffd
or dword [ebp - 0x420], 0xffffffff
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x418]
call fcn.0101e3b0
test eax, eax
je 0x1015fd1
push dword [ebp - 0x420]
push dword [ebp - 0x418]
call fcn.0101f8aa
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, ebx
je 0x1015fd1
push esi
push dword [ebp - 0x418]
call fcn.010198f9
test eax, eax
jne 0x1015fd9
push esi
call fcn.0101ee26
mov dword [ebp - 0x424], ebx
jmp 0x1015fd9
call edi
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x420], 0xffffffff
je 0x1015fee
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1016007
mov dword [ebp - 0x41c], 0x660
cmp dword [ebp - 0x424], ebx
jne 0x101602c
push dword [ebp - 0x418]
call fcn.0101ab1e
test eax, eax
jne 0x1016026
call edi
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], ebx
cmp dword [ebp - 0x41c], ebx
je 0x1016040
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010106b6
leave
ret 8
Function at 0x101622a
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0x8000ffff
pop edi
test edx, edx
je 0x1016258
and edx, 0x3127
or edx, 0x80
mov dword [ebp - 0x14], edx
test esi, esi
je 0x1016267
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x1016276
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1016288
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
push 4
push 0x28
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x10162a8
cmp eax, 0xc000000d
jne 0x10162ac
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x1016572
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [eax + 0x4c]
push edi
xor edi, edi
xor ebx, ebx
cmp esi, edi
je 0x10166b9
push edi
push dword [ebp + 8]
call fcn.01015de9
test eax, 0x40000
je 0x10166b9
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp esi, edi
je 0x10166a6
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov dword [ebp - 8], edi
cmp word [eax], di
je 0x10165df
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push 0x1002818
push eax
call fcn.0101152d
add esp, 0x10
mov dword [ebp + 0x14], edi
jmp 0x1016600
cmp dword [ebp + 0x14], edi
je 0x1016602
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0xffffffff
je 0x1016602
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push 0x1002810
push eax
call fcn.0101152d
add esp, 0xc
mov ebx, eax
cmp ebx, edi
jl 0x1016668
cmp dword [ebp - 4], edi
je 0x1016631
push edi
push dword [ebp - 4]
call fcn.01014fba
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x1016631
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x101662f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x1016668
cmp dword [ebp - 8], edi
je 0x1016668
push edi
push dword [ebp + 0x14]
lea eax, [esi + 0x10]
push edi
push dword [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0101e277
test eax, eax
jne 0x1016668
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1016666
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp dword [ebp - 4], edi
je 0x1016685
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x1016685
mov dword [ebp - 4], edi
cmp dword [ebp - 8], edi
je 0x101669b
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, edi
mov esi, dword [esi + 0x24]
jge 0x10165b0
mov eax, dword [ebp + 0x10]
push dword [eax + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
jmp 0x10166bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10169b9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push dword [ebp + 0x14]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10169e4
push dword [ebp + 0x14]
call fcn.01015316
xor edi, edi
push edi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x1016ae7
movzx eax, word [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
add eax, 0x10
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x1016a99
mov dword [ebp - 0x10], edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
movzx eax, word [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.msvcrt.dll_memmove]
mov byte [esi], 0
xor edi, edi
mov dword [esi + 4], edi
movzx eax, word [ebp - 8]
mov dword [esi + 8], eax
movzx eax, word [ebp - 8]
add esp, 0xc
push 0xb
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, edi
jge 0x1016a8b
push 0x13f5
push 0x10028b8
or eax, 0x10000000
mov edi, eax
push edi
push 0x1002888
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
call fcn.01015457
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1016acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1016aad
and eax, 0xffff
or eax, 0x80070000
push 0x13ff
push 0x10028b8
mov edi, eax
push edi
push 0x100286c
push dword [ebp + 0x14]
push dword [ebp + 8]
push 1
call fcn.01015457
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
pop ebx
jmp 0x1016b0b
push 0x1409
push 0x10028b8
mov eax, 0x80070003
push eax
push 0x1002828
push dword [ebp + 0x14]
mov edi, eax
push dword [ebp + 8]
push 1
call fcn.01015457
test edi, edi
jl 0x1016b13
xor eax, eax
jmp 0x1016b15
mov eax, edi
pop edi
leave
ret 0x10
Function at 0x10181a9
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, eax
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0101957a
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov edi, esi
and edi, 0x400
je 0x10181ed
test byte [ebp - 8], 0x80
jne 0x10181ed
xor eax, eax
jmp 0x1018333
and esi, 0x4000
mov dword [ebp - 0x10], esi
je 0x1018201
test dword [ebp - 8], 0x20000
je 0x10181e6
test byte [ebx + 0x20], 2
jne 0x10182b6
lea esi, [ebx + 4]
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x1018262
test dword [ebp - 0xc], 0x1000000
je 0x101822c
test edi, edi
jne 0x101822c
mov edx, dword [ebp + 8]
call fcn.01016b1f
jmp 0x101825e
push 1
push dword [ebx + 8]
add eax, 0x14
push ecx
push eax
push dword [ebp + 8]
call fcn.0101e324
test eax, eax
je 0x101824a
or dword [ebx + 0x20], 2
xor esi, esi
jmp 0x10182bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101825e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10182b8
test edi, edi
jne 0x101826b
cmp dword [ebp - 0x10], edi
je 0x1018286
push dword [ebp + 8]
call fcn.0101a025
push eax
call fcn.0101fc0f
mov dword [ebp - 4], eax
test eax, eax
jne 0x10182b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1018295
mov eax, dword [ebx + 8]
push 1
push esi
push ecx
push eax
mov eax, dword [ebx]
add eax, 0x14
push eax
push dword [ebp + 8]
call fcn.0101e277
test eax, eax
je 0x101824a
or dword [ebx + 0x20], 3
jmp 0x1018246
xor ecx, ecx
jmp 0x101828b
xor esi, esi
test esi, esi
jl 0x1018310
cmp dword [ebp + 0xc], 0
je 0x1018310
cmp dword [ebp - 0x10], 0
je 0x10182db
push dword [ebx + 8]
lea eax, [ebx + 4]
push eax
push dword [ebp + 8]
mov eax, dword [ebx]
call fcn.01016770
jmp 0x10182f0
test edi, edi
je 0x10182f2
push dword [ebx]
lea eax, [ebx + 4]
push dword [ebx + 8]
push eax
push dword [ebp + 8]
call fcn.0101793a
mov esi, eax
test esi, esi
jl 0x1018310
mov eax, dword [ebx]
cmp dword [eax + 0x4c], 0
je 0x1018310
lea ecx, [ebx + 4]
push ecx
push eax
push dword [ebx + 8]
push dword [ebp + 8]
call fcn.01016572
mov esi, eax
cmp dword [ebp - 4], 0
je 0x1018331
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10189ef
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x30
xor edi, edi
push 8
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
jne 0x1018a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1018b8a
and eax, 0xffff
or eax, 0x80070000
jmp 0x1018b8a
mov eax, dword [ebp + 8]
push ebx
lea ecx, [esi + 0x28]
push ecx
lea ecx, [esi + 0x24]
push ecx
push eax
mov dword [esi], eax
call fcn.0101957a
mov eax, dword [ebp + 0xc]
cmp eax, 1
jbe 0x1018b6e
mov dword [esi + 0x2c], eax
lea eax, [esi + 4]
push eax
push edi
push 0x40
lea eax, [esi + 0x10]
push eax
call fcn.010157b5
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1018b7e
lea eax, [esi + 0x14]
push eax
push edi
push 0x100
lea eax, [esi + 0x20]
push eax
call fcn.010157b5
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1018b7e
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x18], eax
cmp eax, edi
jne 0x1018ab7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1018ab4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x1018b7e
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 8], eax
cmp eax, edi
jne 0x1018ae5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1018ae2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x1018b7e
push edi
push edi
push esi
push 0x1018523
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp eax, edi
jne 0x1018b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1018b19
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x1018b7e
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push eax
call ebx
mov eax, dword [ebp + 0xc]
dec eax
push eax
push dword [esi + 0x1c]
call ebx
push edi
push edi
push esi
push 0x10183ea
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x1018b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1018b66
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x1018b7e
mov eax, dword [ebp + 0x10]
push esi
push dword [ebp + 8]
mov dword [eax], esi
call fcn.01019776
jmp 0x1018b86
push dword [ebp + 8]
call fcn.01016088
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 0xc