joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ba5b
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1039683
mov eax, dword fs:[0]
push eax
mov eax, 0x1278
call fcn.01037450
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1278], ecx
xor edi, edi
lea ecx, [ebp - 0x1274]
mov dword [ebp - 0x1284], edi
mov dword [ebp - 0x127c], edi
call fcn.0100fe82
mov esi, 0x1001d80
push esi
push 1
xor eax, eax
push edi
mov dword [ebp - 4], edi
mov word [ebp - 0x218], ax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1280], eax
je 0x100bc00
call edi
cmp eax, 0xb7
je 0x100bc00
mov eax, dword [section..data]
mov ebx, section..data
mov edi, 0x10017f0
cmp eax, ebx
je 0x100bb12
test byte [eax + 0x1c], 4
je 0x100bb12
push esi
push edi
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008bcd
mov esi, dword [ebp - 0x1278]
mov ecx, esi
mov dword [ebp - 0x1284], 1
call fcn.01009aac
xor eax, eax
mov word [ebp - 0x218], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1274]
call fcn.0100ff3b
mov dword [ebp - 0x1278], eax
test eax, eax
jge 0x100bb83
mov eax, dword [section..data]
cmp eax, ebx
je 0x100bc3a
test byte [eax + 0x1c], 1
je 0x100bc3a
push dword [ebp - 0x1278]
push edi
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x100bc3a
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0100aa02
mov dword [ebp - 0x1278], eax
test eax, eax
jge 0x100bbbd
mov eax, dword [section..data]
cmp eax, ebx
je 0x100bc3a
test byte [eax + 0x1c], 1
je 0x100bc3a
push dword [ebp - 0x1278]
push edi
push 0x32
jmp 0x100bb73
lea eax, [ebp - 0x127c]
push eax
mov ecx, esi
call fcn.01009917
test eax, eax
jl 0x100bbf0
cmp dword [ebp - 0x127c], 0
je 0x100bbf0
push dword [ebp - 0x127c]
mov ecx, esi
call fcn.0100b1b8
test eax, eax
jl 0x100bbf0
mov ecx, esi
call fcn.01009b64
mov ecx, esi
call fcn.0100a68b
and dword [ebp - 0x1278], 0
jmp 0x100bc3a
mov eax, dword [section..data]
cmp eax, section..data
je 0x100bc2c
test byte [eax + 0x1c], 1
je 0x100bc2c
call edi
push eax
mov eax, dword [section..data]
push 0x10017f0
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
call edi
push eax
call fcn.0100968c
mov dword [ebp - 0x1278], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp - 0x1280], esi
je 0x100bc66
cmp dword [ebp - 0x1284], esi
je 0x100bc5e
push dword [ebp - 0x1280]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x1280]
call edi
cmp dword [ebp - 0x127c], esi
je 0x100bc7c
push dword [ebp - 0x127c]
call edi
mov dword [ebp - 0x127c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1274]
call fcn.01009cc7
mov eax, dword [ebp - 0x1278]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010084d5
leave
ret
Function at 0x100bedf
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x10396fa
call fcn.010372df
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ecx, ecx
inc ecx
xor ebx, ebx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x288], ebx
je 0x100bf2b
mov eax, dword [section..data]
cmp eax, section..data
je 0x100bf23
test byte [eax + 0x1c], cl
je 0x100bf23
push 0x10017f0
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
push ebx
mov ecx, esi
call fcn.01009a0b
lea eax, [esi + 0x80]
cmp word [eax], bx
je 0x100bf3d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x2a8]
cmp dword [eax], ebx
je 0x100bf4d
push eax
call fcn.0102a9cf
lea ecx, [esi + 0x2ac]
mov byte [ebp - 4], bl
call fcn.01014822
or dword [ebp - 4], 0xffffffff
add esi, 0x290
mov ecx, esi
call fcn.010273de
test eax, eax
jge 0x100bf65
call fcn.010373cb
ret
Function at 0x100d261
Capabilities:
Enumerate files on windows

Disassembly:
push 0x478
mov eax, 0x1039829
call fcn.01037352
mov esi, dword [ebp + 8]
xor edi, edi
push 0x24c
lea eax, [ebp - 0x464]
push edi
push eax
mov dword [ebp - 0x470], ecx
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x468], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x480]
call fcn.01014810
mov dword [ebp - 4], edi
cmp esi, edi
je 0x100d48e
cmp esi, 0xffffffff
je 0x100d48e
push edi
push edi
lea ecx, [ebp - 0x480]
call fcn.01015552
push 0x10026e4
lea ecx, [ebp - 0x480]
call fcn.01015747
lea ecx, [ebp - 0x480]
call fcn.01015d45
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0100a010
mov esi, eax
cmp esi, edi
jge 0x100d32d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d47b
test byte [eax + 0x1c], 1
je 0x100d47b
push 0x1001e78
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x100d47b
push 0x10026d8
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0100cb9c
mov esi, eax
cmp esi, edi
jge 0x100d368
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d47b
test byte [eax + 0x1c], 1
je 0x100d47b
push 0x1001e78
push 0x35
jmp 0x100d31d
lea eax, [ebp - 0x218]
push eax
call fcn.010162c4
push 0x250
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x468]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x46c], eax
cmp eax, 0xffffffff
je 0x100d464
mov esi, 0x1001e78
test byte [ebp - 0x468], 0x10
jne 0x100d449
mov ecx, dword [ebp - 0x484]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x43c]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0100cb9c
test eax, eax
jge 0x100d409
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d449
test byte [eax + 0x1c], 1
je 0x100d449
push esi
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x100d449
mov ecx, dword [ebp - 0x470]
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x474]
call fcn.0100cd25
cmp eax, edi
jge 0x100d449
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x100d449
test byte [ecx + 0x1c], 1
je 0x100d449
push eax
push esi
push 0x37
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01008600
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100d3b7
xor esi, esi
cmp dword [ebp - 0x46c], 0xffffffff
je 0x100d47b
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.01014822
mov eax, esi
jmp 0x100d4c6
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d4b2
test byte [eax + 0x1c], 1
je 0x100d4b2
push 0x1001e78
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.01014822
mov eax, 0x80070057
call fcn.010373e4
ret 4
Function at 0x100d964
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x228], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
or dword [ebp - 0x218], 0xffffffff
and dword [ebp - 0x210], 0
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x224]
stosd dword es:[edi], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x22c], edx
mov ebx, 0x80004005
stosd dword es:[edi], eax
test ecx, ecx
je 0x100dbb5
test edx, edx
je 0x100dbb5
push esi
call fcn.0100eadb
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x100da02
mov eax, dword [section..data]
cmp eax, section..data
je 0x100dafc
test byte [eax + 0x1c], 1
je 0x100dafc
push 0x1001e78
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x100dafc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01016de0
mov ebx, eax
test ebx, ebx
jge 0x100da49
mov eax, dword [section..data]
cmp eax, section..data
je 0x100dafc
test byte [eax + 0x1c], 1
je 0x100dafc
push ebx
push 0x1001e78
push 0x3d
jmp 0x100db98
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100da52
and dword [ebp - 0x220], 0
sub eax, edx
sar eax, 1
mov esi, 0x103
sub esi, eax
and dword [ebp - 0x214], 0
lea edi, [ebp + eax*2 - 0x20c]
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x228], 0xc
mov dword [ebp - 0x224], eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x10026f0
push esi
push edi
call fcn.0100878d
mov ebx, eax
xor eax, eax
add esp, 0x14
cmp ebx, eax
jl 0x100db76
push eax
push eax
push 1
lea ecx, [ebp - 0x228]
push ecx
push eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x100dafa
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x214]
cmp dword [ebp - 0x214], 0x14
jb 0x100da92
xor ebx, ebx
cmp dword [ebp - 0x210], 0
je 0x100db11
lea eax, [ebp - 0x210]
push eax
call fcn.0100ec76
mov esi, dword [ebp - 0x218]
cmp esi, 0xffffffff
je 0x100dbb0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
call fcn.0100a010
mov ebx, eax
test ebx, ebx
jge 0x100dba8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [section..data]
cmp eax, section..data
je 0x100dbb0
test byte [eax + 0x1c], 1
je 0x100dbb0
push ebx
push 0x1001e78
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x100dbb0
mov eax, dword [section..data]
cmp eax, section..data
je 0x100dafc
test byte [eax + 0x1c], 1
je 0x100dafc
push ebx
push 0x1001e78
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x100dafc
mov eax, dword [ebp - 0x22c]
mov dword [eax], esi
mov eax, ebx
pop esi
jmp 0x100dbba
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret 0xc
Function at 0x100eb93
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
mov dword [ebp - 4], edi
push 0x1002aa0
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
cmp ebx, edi
jne 0x100ebe1
cmp dword [ebp - 4], 0x14
jae 0x100ebe1
call esi
cmp eax, 0x6ba
je 0x100ebd1
call esi
cmp eax, 0x6b5
jne 0x100ebe1
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
inc eax
jmp 0x100ebe3
xor eax, eax
inc dword [ebp - 4]
cmp ebx, edi
jne 0x100ec1c
cmp eax, edi
jne 0x100eba7
mov eax, dword [section..data]
cmp eax, section..data
je 0x100ec6a
test byte [eax + 0x1c], 1
je 0x100ec6a
call esi
push eax
mov eax, dword [section..data]
push 0x1002a44
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x100ec6a
push edi
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push edi
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x100ec63
mov eax, dword [section..data]
cmp eax, section..data
je 0x100ec63
test byte [eax + 0x1c], 1
je 0x100ec63
call esi
push eax
mov eax, dword [section..data]
push 0x1002a44
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100ecdc
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 8], esi
je 0x100ee7e
cmp dword [ebp + 0xc], esi
je 0x100ee7e
push dword [ebp + 0xc]
call fcn.010108ed
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], esi
jne 0x100ed46
cmp eax, esi
je 0x100ed46
mov eax, dword [section..data]
cmp eax, section..data
je 0x100ed3c
test byte [eax + 0x1c], 1
je 0x100ed3c
push 0x1002a44
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov esi, 0x800700b7
jmp 0x100ee61
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
mov esi, 0x80
push esi
push dword [ebp + 0xc]
call edi
call fcn.0100eadb
mov ebx, eax
mov dword [ebp + 0x10], ebx
test ebx, ebx
jne 0x100eda6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100ee53
test byte [eax + 0x1c], 1
je 0x100ee53
push esi
push 0x1002a44
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x100ee53
push 0
push esi
push 2
lea eax, [ebp - 0x10]
push eax
push 0
push 0x40040000
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x100ee05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100ee53
test byte [eax + 0x1c], 1
je 0x100ee53
push dword [ebp + 0xc]
push 0x1002a44
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008bcd
jmp 0x100ee53
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100ee4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100ee53
test byte [eax + 0x1c], 1
je 0x100ee53
push esi
push 0x1002a44
push 0xf
jmp 0x100ed96
push esi
push dword [ebp + 0xc]
call edi
xor esi, esi
test ebx, ebx
pop ebx
je 0x100ee61
lea eax, [ebp + 0x10]
push eax
call fcn.0100ec76
cmp dword [ebp + 0x14], 0
jne 0x100ee6d
cmp dword [ebp - 4], 0
jne 0x100ee7a
test esi, esi
jge 0x100ee7a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
jmp 0x100eea7
mov eax, dword [section..data]
cmp eax, section..data
je 0x100eea2
test byte [eax + 0x1c], 1
je 0x100eea2
push 0x1002a44
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
pop edi
pop esi
leave
ret 0x10
Function at 0x100eeb2
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
xor edx, edx
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], edx
stosd dword es:[edi], eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebx, edx
je 0x100efd1
cmp esi, edx
je 0x100efd1
mov eax, ebx
lea edi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, dx
jne 0x100eef7
sub eax, edi
sar eax, 1
cmp eax, 3
jae 0x100ef30
mov eax, dword [section..data]
cmp eax, section..data
je 0x100eff5
test byte [eax + 0x1c], 1
je 0x100eff5
push 0x1002a44
push 0x11
jmp 0x100efea
push 1
push edx
push edx
push 0x1002b2c
push 0x1002ab8
push 0x80000002
call fcn.01012d0e
xor edi, edi
cmp eax, edi
jbe 0x100ef53
mov dword [esi + 4], edi
jmp 0x100efc9
mov ax, word [ebx]
mov word [ebp - 0xc], ax
mov ax, word [ebx + 2]
mov word [ebp - 0xa], ax
mov ax, word [ebx + 4]
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x100efb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100efcd
test byte [eax + 0x1c], 1
je 0x100efcd
push esi
push 0x1002a44
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x100efcd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [esi + 4], ecx
mov dword [esi], eax
xor esi, esi
mov eax, esi
jmp 0x100effa
mov eax, dword [section..data]
cmp eax, section..data
je 0x100eff5
test byte [eax + 0x1c], 1
je 0x100eff5
push 0x1002a44
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret 8
Function at 0x100f441
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x2c]
mov dword [ebp - 8], ebx
call fcn.0100f295
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x100f596
cmp word [edi], bx
je 0x100f596
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x100f4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100f5d4
test byte [eax + 0x1c], 1
je 0x100f5d4
push edi
push 0x1002cfc
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008bcd
jmp 0x100f5d4
push 0
lea ecx, [ebp - 8]
push ecx
mov edi, 0x1000
push edi
lea ebx, [esi + 0x40]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f561
cmp dword [ebp - 8], edi
jne 0x100f561
cmp dword [ebx], 0x45474150
jne 0x100f561
cmp dword [esi + 0x44], 0x504d5544
jne 0x100f561
push dword [esi + 0x78]
add esi, 0x1040
push dword [esi - 0xfcc]
push dword [esi - 0xfd0]
push dword [esi - 0xfd4]
push dword [esi - 0xfd8]
push 0x1002d10
push esi
call fcn.010157db
mov esi, eax
add esp, 0x1c
test esi, esi
jge 0x100f55d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100f5bf
test byte [eax + 0x1c], 1
je 0x100f5bf
push esi
push 0x1002cfc
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x100f5bf
xor esi, esi
jmp 0x100f5bf
mov eax, dword [section..data]
cmp eax, section..data
je 0x100f588
test byte [eax + 0x1c], 1
je 0x100f588
push dword [ebp - 0xc]
push 0x1002cfc
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008bcd
push edi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x100f5ba
mov eax, dword [section..data]
cmp eax, section..data
je 0x100f5ba
test byte [eax + 0x1c], 1
je 0x100f5ba
push 0x1002cfc
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov esi, 0x80004005
cmp dword [ebp - 4], 0
je 0x100f5d4
cmp dword [ebp - 4], 0xffffffff
je 0x100f5d4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100f8a2
Capabilities:
Delete file

Disassembly:
push 0x10
mov eax, 0x1039974
call fcn.010372df
mov esi, ecx
cmp dword [esi + 0x40], 0x45474150
jne 0x100fa9a
lea edi, [esi + 0x2c]
mov ecx, edi
mov dword [ebp - 0x10], edi
call fcn.0100f0dc
test eax, eax
jne 0x100f8e0
mov ecx, edi
call fcn.0100f295
mov dword [esi + 0x1058], eax
jmp 0x100fa73
push 0x40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0xfc8]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x100f9f5
cmp eax, 2
je 0x100f9f5
cmp eax, 4
jne 0x100fa64
lea ecx, [ebp - 0x1c]
call fcn.01014810
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0100f5e0
mov edi, eax
test edi, edi
jge 0x100f975
mov eax, dword [section..data]
cmp eax, section..data
je 0x100f964
test byte [eax + 0x1c], bl
je 0x100f964
push edi
push 0x1002cfc
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.01014822
jmp 0x100fa9f
push ebx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.01015d45
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0100f295
push eax
call fcn.0100ecdc
mov edi, eax
test edi, edi
jge 0x100f9c9
mov eax, dword [section..data]
cmp eax, section..data
je 0x100f9b8
test byte [eax + 0x1c], bl
je 0x100f9b8
push edi
push 0x1002cfc
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
lea ecx, [ebp - 0x1c]
call fcn.01015d45
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100f964
lea eax, [ebp - 0x1c]
lea edi, [esi + 0x104c]
push eax
mov ecx, edi
call fcn.0101565e
mov ecx, edi
call fcn.01015d45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x1058], eax
call fcn.01014822
jmp 0x100fa64
mov ecx, esi
call fcn.0100f2a2
test eax, eax
je 0x100fa77
mov ecx, esi
call fcn.0100f2a2
cmp word [eax], 0
je 0x100fa77
push ebx
mov ecx, esi
call fcn.0100f0dc
push eax
mov ecx, esi
call fcn.0100f2a2
push eax
mov ecx, edi
call fcn.0100f295
push eax
call fcn.0100ecdc
mov edi, eax
test edi, edi
jge 0x100fa57
mov eax, dword [section..data]
cmp eax, section..data
je 0x100fa9f
test byte [eax + 0x1c], bl
je 0x100fa9f
push edi
push 0x1002cfc
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x100fa9f
mov ecx, esi
call fcn.0100f2a2
mov dword [esi + 0x1058], eax
mov ecx, dword [ebp - 0x10]
call fcn.0100f295
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
jmp 0x100fa9f
mov eax, dword [section..data]
cmp eax, section..data
je 0x100fa9a
test byte [eax + 0x1c], bl
je 0x100fa9a
push 0x1002cfc
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov edi, 0x80004005
mov eax, edi
call fcn.010373cb
ret
Function at 0x1010447
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x48c]
mov dword [ebp - 0x490], edi
call fcn.01010251
xor ebx, ebx
cmp edi, ebx
je 0x1010483
cmp dword [ebp + 0xc], ebx
jbe 0x1010483
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x48c]
push eax
mov esi, 0x1002e5c
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryTraceW]
test eax, eax
jne 0x1010599
cmp edi, ebx
je 0x10104ec
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0100a010
mov edi, eax
cmp edi, ebx
jge 0x10104ec
mov eax, dword [section..data]
cmp eax, section..data
je 0x101059b
test byte [eax + 0x1c], 1
je 0x101059b
push edi
push 0x1002e10
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x101059b
lea eax, [ebp - 0x48c]
push eax
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_StopTraceW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
je 0x1010541
call ebx
test eax, eax
jle 0x101051a
and eax, edi
or eax, esi
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1010541
test byte [eax + 0x1c], 1
je 0x1010541
push ecx
push 0x1002e10
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
cmp word [ebp - 0x20c], 0
je 0x1010599
cmp dword [ebp - 0x490], 0
jne 0x1010599
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1010599
mov eax, dword [section..data]
cmp eax, section..data
je 0x1010599
test byte [eax + 0x1c], 1
je 0x1010599
call ebx
test eax, eax
jle 0x1010581
and eax, edi
or eax, esi
push eax
mov eax, dword [section..data]
push 0x1002e10
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret 8