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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [0x1008dc44], eax
mov eax, dword [ebp + 0x14]
mov dword [0x1008dc48], eax
mov eax, dword [ebp + 0x10]
push 0x20a
mov dword [0x1008dc40], eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10048ef0
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.10002f9a
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x10002340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1007a97c
cmp eax, 0xb7
je 0x10002345
mov ecx, 0x1007a980
call fcn.10003013
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045845
leave
ret

Function at 0x100023a7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x43c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.10048ef0
add esp, 0xc
mov dword [ebp - 0x438], 0x22c
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002400
xor al, al
jmp 0x1000247a
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10002469
cmp dword [ebp - 0x430], edi
je 0x1000245b
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10048ef0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.1004ec3d
push dword [ebp - 0x43c]
lea eax, [ebp - 0x20c]
push eax
call fcn.1004e96f
add esp, 0x20
test eax, eax
je 0x1000246f
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10002410
jmp 0x10002471
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10045845
leave
ret
Function at 0x10002489
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
mov dword [ebp - 0x444], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.10048ef0
add esp, 0xc
mov dword [ebp - 0x438], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x44c], edi
cmp edi, 0xffffffff
jne 0x100024f3
xor al, al
jmp 0x10002610
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10002601
mov dword [ebp - 0x440], 0x18
mov eax, dword [ebp - 0x448]
cmp dword [ebp - 0x430], eax
je 0x100025eb
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10048ef0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1004ec3d
mov eax, dword [ebx + 4]
xor edx, edx
mov ecx, dword [ebx]
add esp, 0x18
sub eax, ecx
mov dword [ebp - 0x43c], edx
cdq
idiv dword [ebp - 0x440]
test eax, eax
je 0x100025eb
mov edi, dword [ebp - 0x444]
xor ebx, ebx
lea eax, [ebx + ecx]
cmp dword [eax + 0x10], 0
je 0x100025be
cmp dword [eax + 0x14], 8
jb 0x10002586
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1004e96f
pop ecx
pop ecx
test eax, eax
jne 0x100025be
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x100025af
mov eax, dword [ebp - 0x430]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x100025be
lea eax, [ebp - 0x430]
push eax
push ecx
mov ecx, esi
call fcn.10002ad2
mov ecx, dword [edi]
push 0x18
pop eax
add ebx, eax
inc dword [ebp - 0x43c]
mov eax, dword [edi + 4]
sub eax, ecx
cdq
idiv dword [ebp - 0x440]
cmp dword [ebp - 0x43c], eax
jb 0x10002575
mov edi, dword [ebp - 0x44c]
mov ebx, dword [ebp - 0x444]
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10002513
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10045845
leave
ret
Function at 0x1000261f
Capabilities:
Terminate process

Disassembly:
push 0x14
mov eax, 0x10066db8
call fcn.1006564c
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.10002489
mov edi, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x14], ebx
mov esi, edi
mov ebx, dword [ebp - 0x1c]
sub ebx, edi
add ebx, 3
shr ebx, 2
cmp edi, dword [ebp - 0x1c]
cmova ebx, eax
test ebx, ebx
je 0x100026b4
mov edi, eax
push dword [esi]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100026a0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10002697
push 0x1388
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add esi, 4
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10002665
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x100026c9
mov ecx, dword [ebp - 0x18]
sub ecx, edi
and ecx, 0xfffffffc
push ecx
push edi
call fcn.10002d63
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
call fcn.10065626
ret
Function at 0x10003162
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x24], ecx
push esi
push edi
push 0x40
push eax
mov ebx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x74]
push eax
mov word [ebp - 8], 0x1000
call fcn.10048ef0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x78], 0x44
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 5
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
pop eax
inc edi
mov word [ebp - 0x48], ax
mov dword [ebp - 0x4c], edi
call esi
lea eax, [ebp - 0x10]
push eax
push 0x8b
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100031ee
cmp dword [ebp - 0x10], ebx
je 0x10003220
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003220
lea eax, [ebp - 0x14]
push eax
push edi
push 2
xor edi, edi
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x10003227
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x10003216
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x14], ebx
je 0x10003220
push dword [ebp - 0x14]
call esi
xor eax, eax
jmp 0x100032ee
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x2000
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov eax, dword [ebp - 0x18]
push 0x20
pop esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x20]
push eax
push 0x19
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push edi
push edi
push esi
push edi
push edi
push edi
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10003290
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], edi
je 0x100032a3
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x14], edi
je 0x100032b0
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x18], edi
je 0x100032c1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x34], edi
je 0x100032ce
push dword [ebp - 0x34]
call esi
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x30], edi
je 0x100032db
push dword [ebp - 0x30]
call esi
mov dword [ebp - 0x30], edi
test ebx, ebx
je 0x100032eb
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10003220
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10045845
leave
ret
Function at 0x100032fd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [0x1008dc44], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [0x1008dc48], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
push 0x410
mov dword [0x1008dc40], eax
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.10048ef0
add esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.10002f9a
lea ecx, [ebp - 0x414]
call fcn.10003162
test eax, eax
jne 0x100033b0
push 0x44
lea eax, [ebp - 0x458]
push edi
push eax
call fcn.10048ef0
add esp, 0xc
mov dword [ebp - 0x458], 0x44
mov dword [ebp - 0x42c], 1
push 5
pop eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x458]
push eax
push edi
push edi
push 0x4000000
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10045845
leave
ret

Function at 0x100033bd
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, ecx
xorps xmm2, xmm2
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
movd xmm1, dword [eax + edi]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
add eax, 4
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
cmp eax, 0xc18
jb 0x100033d2
movaps xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
push ebx
psrldq xmm0, 4
push 0x80
paddd xmm2, xmm0
movd ecx, xmm2
push 4
push ebx
push ebx
cmp ecx, 2
push 0x40000000
lea eax, [ecx - 2]
cmovbe eax, ecx
push edx
mov dword [edi + 0xc18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x1000348e
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov dword [ebp - 0xc], eax
call ebx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push 0xc1c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 8], 0xc1c
je 0x10003487
mov eax, dword [ebp - 4]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100035d6
Capabilities:
Create process on windows

Disassembly:
push 0xb0
mov eax, 0x10066ea1
call fcn.10065680
mov byte [ebp - 0x59], cl
mov eax, dword [ebp + 0x3c]
xor ebx, ebx
mov edi, dword [ebp + 0x38]
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 1
test dl, dl
je 0x10003624
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
call fcn.10003fec
call fcn.1002be80
push ecx
push esi
mov ecx, eax
call fcn.1002c070
test al, al
je 0x100037a9
push 0x44
pop esi
push esi
lea eax, [ebp - 0xbc]
push ebx
push eax
call fcn.10048ef0
push 0x10
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.10048ef0
add esp, 0x18
mov dword [ebp - 0xbc], esi
cmp dword [ebp + 0x30], 0
mov dword [ebp - 0x90], 0x80
je 0x1000369a
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
cmp word [eax], 0x20
je 0x1000369a
lea eax, [ebp + 0x20]
mov edx, 0x1007aa6c
push eax
lea ecx, [ebp - 0x58]
call fcn.10003a9e
pop ecx
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0xa
call fcn.100039c9
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.100029a3
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov edx, 0x1007aa70
push eax
lea ecx, [ebp - 0x58]
call fcn.10003a9e
mov esi, eax
mov byte [ebp - 4], 0xf
mov dword [esp], 0x1007aa70
call fcn.1004eca1
pop ecx
push eax
push 0x1007aa70
mov ecx, esi
call fcn.10003c2c
mov byte [ebp - 0x70], bl
lea ecx, [ebp - 0x40]
push dword [ebp - 0x70]
mov dword [ebp - 0x30], ebx
push eax
mov dword [ebp - 0x2c], ebx
call fcn.10002f2a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x12
call fcn.100029a3
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 0x11
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.10003b35
pop ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xbc]
push ecx
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000378d
test edi, edi
je 0x10003739
mov eax, dword [ebp - 0x64]
mov dword [edi], eax
cmp byte [ebp - 0x59], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
je 0x10003770
test eax, eax
je 0x10003770
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x10003766
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x6c]
call esi
mov eax, ebx
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x68], 0
je 0x10003781
push dword [ebp - 0x68]
call esi
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], ebx
test eax, eax
je 0x1000378b
push eax
call esi
mov dword [ebp - 0x6c], ebx
mov bl, 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x27
call fcn.100029a3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x2b
call fcn.100029a3
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x2f
call fcn.100029a3
lea ecx, [ebp + 0x20]
mov dword [ebp - 4], 0x33
call fcn.100029a3
or dword [ebp - 4], 0xffffffff
mov al, bl
call fcn.1006563b
ret
Function at 0x10003e74
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1008dbbc], 0
jne 0x10003fde
push esi
push 0x410
xor esi, esi
mov byte [0x1008dbbc], 1
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10048ef0
add esp, 0xc
mov dword [ebp - 0x82c], esi
lea eax, [ebp - 0x82c]
push eax
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10003f03
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x82c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10003efa
cmp dword [ebp - 0x82c], esi
je 0x10003f03
push dword [ebp - 0x82c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10003f03
xor eax, eax
mov word [ebp - 0x414], ax
push edi
mov edi, 0x1007a958
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.1004e939
lea eax, [ebp - 0x414]
push str.2345Pic
push eax
call fcn.1004e939
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10003f45
xor eax, eax
mov word [ebp - 0x414], ax
push 0x412
lea eax, [ebp - 0x828]
push esi
push eax
call fcn.10048ef0
lea eax, [ebp - 0x414]
push eax
call fcn.1004eca1
add esp, 0x10
test eax, eax
je 0x10003fb6
push 0x207
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.1004ef17
lea eax, [ebp - 0x828]
push eax
call fcn.1004eca1
add esp, 0x10
test eax, eax
je 0x10003fb6
lea eax, [ebp - 0x828]
push edi
push eax
call fcn.1004e939
lea eax, [ebp - 0x828]
push str.2345Image.hzv
push eax
call fcn.1004e939
add esp, 0x10
call fcn.1002be80
mov esi, eax
lea eax, [ebp - 0x828]
push eax
call fcn.1004eca1
pop ecx
pop edi
test eax, eax
je 0x10003fdd
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.1002bf60
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045845
leave
ret
Function at 0x1002a4a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ad68
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1008b008]
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 esi, ecx
call fcn.100028d8
test al, al
je 0x1002a4dd
xor al, al
jmp 0x1002a611
push esi
lea ecx, [ebp - 0x28]
call fcn.100039f2
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.1002b340
lea ecx, [ebp - 0x28]
call fcn.100028e0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002a5fe
lea ecx, [ebp - 0x40]
call fcn.10003c19
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1003b020
test al, al
je 0x1002a53e
lea ecx, [ebp - 0x40]
call fcn.100028e0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.100028eb
cmp esi, 0xffffffff
jne 0x1002a5fe
lea ecx, [ebp - 0x28]
call fcn.100029d1
cmp eax, 2
jbe 0x1002a5fa
lea ecx, [ebp - 0x28]
call fcn.100029d1
lea ecx, [ebp - 0x28]
lea ebx, [eax - 1]
call fcn.100029a0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x1002a583
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x1002a5a2
lea ecx, [ebp - 0x28]
call fcn.100029d1
cmp dword [esi + 0x14], 8
jb 0x1002a59a
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x1002a5fa
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.1002b340
lea ecx, [ebp - 0x28]
call fcn.100028e0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002a5fe
lea ecx, [ebp - 0x40]
call fcn.10003c19
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1003b020
test al, al
je 0x1002a5e9
lea ecx, [ebp - 0x40]
call fcn.100028e0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.100028eb
cmp esi, 0xffffffff
jne 0x1002a5fe
xor bl, bl
jmp 0x1002a600
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100028eb
mov al, bl
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.10045845
mov esp, ebp
pop ebp
ret
Function at 0x1002a630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ad68
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1008b008]
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 esi, ecx
call fcn.100028d8
test al, al
je 0x1002a66d
xor al, al
jmp 0x1002a7a7
push esi
lea ecx, [ebp - 0x28]
call fcn.100039f2
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.1002b340
lea ecx, [ebp - 0x28]
call fcn.100028e0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002a6db
lea ecx, [ebp - 0x40]
call fcn.10003c19
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1003b020
test al, al
je 0x1002a6ca
lea ecx, [ebp - 0x40]
call fcn.100028e0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.100028eb
cmp ebx, 0xffffffff
je 0x1002a6e4
test bl, 0x10
je 0x1002a794
lea ecx, [ebp - 0x28]
call fcn.100029d1
cmp eax, 2
jbe 0x1002a790
lea ecx, [ebp - 0x28]
call fcn.100029d1
lea ecx, [ebp - 0x28]
lea ebx, [eax - 1]
call fcn.100029a0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x1002a714
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x1002a733
lea ecx, [ebp - 0x28]
call fcn.100029d1
cmp dword [esi + 0x14], 8
jb 0x1002a72b
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x1002a790
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.1002b340
lea ecx, [ebp - 0x28]
call fcn.100028e0
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002a78b
lea ecx, [ebp - 0x40]
call fcn.10003c19
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1003b020
test al, al
je 0x1002a77a
lea ecx, [ebp - 0x40]
call fcn.100028e0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.100028eb
cmp ebx, 0xffffffff
je 0x1002a790
test bl, 0x10
je 0x1002a794
xor bl, bl
jmp 0x1002a796
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100028eb
mov al, bl
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.10045845
mov esp, ebp
pop ebp
ret
Function at 0x1002a7d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ada0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1008b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.100028d8
test al, al
je 0x1002a80c
xor al, al
jmp 0x1002a896
push esi
lea ecx, [ebp - 0x28]
call fcn.100039f2
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.1002b340
lea ecx, [ebp - 0x28]
call fcn.100028e0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002a87a
lea ecx, [ebp - 0x40]
call fcn.10003c19
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1003b020
test al, al
je 0x1002a869
lea ecx, [ebp - 0x40]
call fcn.100028e0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.100028eb
cmp ebx, 0xffffffff
je 0x1002a883
test bl, 0x10
je 0x1002a883
mov bl, 1
jmp 0x1002a885
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100028eb
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045845
mov esp, ebp
pop ebp
ret