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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004039d8
and dword [ebp - 0x14], 0
cmp dword [0x44e480], 0
mov dword [ebp - 0x18], eax
jne 0x4060d8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406180
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406180
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44e480], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44e484], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44e488], eax
call edi
push eax
call esi
mov dword [0x44e490], eax
test eax, eax
je 0x4060d8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44e48c], eax
mov eax, dword [0x44e48c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406131
cmp dword [0x44e490], ecx
je 0x406131
push eax
call esi
push dword [0x44e490]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406131
test ebx, ebx
je 0x406131
call edi
test eax, eax
je 0x406128
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406128
test byte [ebp - 8], 1
jne 0x406131
or dword [ebp + 0x10], 0x200000
jmp 0x406164
mov eax, dword [0x44e484]
cmp eax, dword [ebp - 0x18]
je 0x406164
push eax
call esi
test eax, eax
je 0x406164
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406164
mov eax, dword [0x44e488]
cmp eax, dword [ebp - 0x18]
je 0x406164
push eax
call esi
test eax, eax
je 0x406164
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44e480]
call esi
test eax, eax
je 0x406180
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406182
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004049f5
leave
ret
Function at 0x40578d
Capabilities:
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x43905c
call fcn.0041eefc
xor ebx, ebx
push 8
pop esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
call fcn.004039da
mov edi, dword [ebp - 0x28]
push 0x20
mov dword [ebp - 0x14], ebx
inc ebx
pop ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
call sub.PSAPI.DLL_EnumProcesses
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x405811
cmp dword [ebp - 0x14], ecx
jb 0x405807
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
add esi, esi
lea ecx, [ebp - 0x28]
push esi
call fcn.004039da
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov al, byte [ebp - 0xd]
shl ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x40581a
mov esi, dword [ebp - 0x14]
shr esi, 2
xor al, al
jmp 0x405817
xor al, al
xor esi, esi
xor ebx, ebx
mov byte [ebp - 0xd], al
test al, al
jne 0x4057cd
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40584a
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
test esi, esi
je 0x405847
mov dword [ebp - 0x18], edi
push edi
mov ecx, ebx
call fcn.00403bea
add edi, 4
sub esi, 1
jne 0x405834
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x40585f
mov ecx, dword [ebp - 0x20]
sub ecx, edi
and ecx, 0xfffffffc
push ecx
push edi
call fcn.0040390e
pop ecx
pop ecx
mov eax, ebx
call fcn.0041eec5
ret

Function at 0x405867
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x405ed4
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x439171
call fcn.0041eefc
call fcn.00410229
push eax
lea ecx, [ebp - 0x10]
call fcn.00401330
xor esi, esi
lea ecx, [ebp - 0x10]
push 0x104
mov dword [ebp - 4], esi
call fcn.00403325
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004033a7
test edi, edi
jne 0x405f43
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402209
mov esi, str.AdobeARM1.0AdobeARM.exe
push esi
call fcn.0042410e
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00402376
xor esi, esi
inc esi
jmp 0x405f6e
push str.SHGetFolderPath_in_GetARMExePath_failed:
lea ecx, [ebp - 0x14]
call fcn.004020ed
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 1
call fcn.00403241
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401a64
mov eax, esi
call fcn.0041eec5
ret
Function at 0x405f81
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x105
xor esi, esi
push esi
push eax
call fcn.00420450
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406006
lea eax, [ebp - 0x210]
push eax
call fcn.0042410e
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.004035fe
mov esi, str.TempArmUI.ini
push esi
call fcn.0042410e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402376
push edi
call fcn.00405867
pop ecx
test eax, eax
jne 0x40608a
mov ecx, edi
call fcn.004025b7
mov esi, 0x104
mov ecx, edi
push esi
call fcn.00403325
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.004033a7
test esi, esi
je 0x40608e
push 0x5c
push dword [edi]
call fcn.004218a4
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40606a
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x40606a
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x40606a
mov esi, 0x43c0e8
push esi
call fcn.0042410e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402376
mov esi, str.ArmUI.ini
push esi
call fcn.0042410e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402376
push edi
call fcn.00405867
pop ecx
test eax, eax
je 0x40608e
xor eax, eax
jmp 0x406091
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041eeb4
leave
ret

Function at 0x4060d6
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x4391ad
call fcn.0041eefc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.00410229
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.00401330
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.004025b7
mov edi, dword [ebp + 0x14]
push edi
call fcn.00405867
pop ecx
test eax, eax
jne 0x406148
push str.Localization_file_missing:
lea ecx, [ebp - 0x10]
call fcn.004020ed
push ebx
xor ecx, ecx
lea eax, [ebp - 0x10]
push edi
inc ecx
push eax
push ecx
mov dword [ebp - 4], ecx
call fcn.00402aff
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.00401a64
jmp 0x406177
mov ebx, 0xff
mov ecx, esi
push ebx
call fcn.00403325
push dword [edi]
mov ecx, dword [ebp + 0x10]
push ebx
push eax
push 0x43bfd8
push dword [ecx]
mov ecx, dword [ebp + 0xc]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004033a7
mov eax, esi
call fcn.0041eec5
ret
Function at 0x406573
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x439291
call fcn.0041ef30
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x224]
push str.GetPrimaryTokenFromExplorer...
call fcn.004020ed
xor edi, edi
lea eax, [ebp - 0x224]
push edi
push eax
push 2
mov dword [ebp - 4], edi
call fcn.00403241
mov ecx, dword [ebp - 0x224]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a64
call fcn.00410229
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401330
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push edi
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00420450
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40665a
lea eax, [ebp - 0x218]
push eax
call fcn.0042410e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004035fe
mov edi, str.explorer.exe
push edi
call fcn.0042410e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00402376
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00406d6f
add esp, 0xc
mov esi, eax
jmp 0x406695
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GetWindowsDirectory_failed:
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004020ed
push esi
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
push ebx
call fcn.00403241
mov ecx, dword [ebp - 0x220]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov eax, esi
call fcn.0041eeda
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x401810
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40184f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40184f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40184f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40184f
cmp dword [ecx + 0x74], 0xe
jbe 0x40184f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40d29a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40d2a9
pop dword [ebp - 0x10]
mov eax, 0x42d981e7
add eax, 0xbd6750c2
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3e240
push 0
mov eax, 0x7876fe14
add eax, 0x87c9e2c4
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xbe1fd772
sub ecx, 0xbe1f7c46
xor edx, edx
add edx, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x10]
mov edi, 0xe30eba46
sub edi, 0x89b3fc2e
add dword [ebp - 8], 0xe0c83b52
mov esi, dword [ebx]
xor dword [ebp - 0xc], 0x229f6d9e
sub esi, edi
mov dword [edx], esi
sub dword [ebp - 0xc], edx
add edx, 4
add ebx, 0xf51f3220
add ebx, 0xae0cde4
loop 0x40d304
add eax, 0x615c57e5
add eax, 0x9ea5079e
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x813132be
add ecx, 0x7f0ecd42
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10001afd
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 0x44
mov eax, 0x1003f626
call fcn.10029671
and dword [ebp - 0x18], 0
mov esi, edx
cmp dword [esi + 0x14], 0xc8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
jbe 0x10001b4b
push 0x100458f0
mov esi, edi
call fcn.10004b6d
mov eax, edi
jmp 0x10001c3a
xor eax, eax
push 0x40e
push eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push eax
call fcn.1002c7e0
add esp, 0xc
push 0x208
lea eax, [ebp + 0x1c]
mov edi, str.cachekvstore
push eax
mov ebx, edi
xor ecx, ecx
call fcn.1000a818
push esi
lea ecx, [ebp - 0x34]
call fcn.100011fa
cmp dword [eax + 0x18], 8
pop ecx
jb 0x10001b8f
mov eax, dword [eax + 4]
jmp 0x10001b92
add eax, 4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp + 0x1c]
push eax
call ebx
push 0
push 1
lea esi, [ebp - 0x34]
call fcn.10005985
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10001c2c
lea eax, [ebp]
push eax
call fcn.10001763
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x14], esi
je 0x10001c1c
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x10001bd9
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
lea eax, [ebp + 0x1c]
push eax
call ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.100011fa
cmp dword [eax + 0x18], 8
pop ecx
jb 0x10001c07
mov eax, dword [eax + 4]
jmp 0x10001c0a
add eax, 4
push eax
lea eax, [ebp + 0x1c]
push eax
call ebx
push esi
push 1
lea esi, [ebp - 0x50]
call fcn.10005985
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp]
call fcn.10005985
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push eax
call fcn.10004b6d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.1002874e
add ebp, 0x430
leave
ret

Function at 0x1000209d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, eax
push edi
push 2
pop eax
mov dword [esi + 8], eax
mov dword [esi + 0xe4], eax
xor ebx, ebx
lea eax, [esi + 0x64]
mov dword [esi + 0xdc], ebx
mov byte [esi + 0xe0], bl
call fcn.10004bbd
lea edi, [esi + 0x80]
call fcn.100051d1
lea edi, [esi + 0xa0]
call fcn.100051d1
lea eax, [esi + 0xc0]
call fcn.10004bbd
lea eax, [esi + 0x114]
push eax
call fcn.10005011
lea eax, [esi + 0xf4]
mov byte [esi + 0xc], bl
mov byte [esi + 0xf0], bl
call fcn.10004bbd
mov byte [esi + 0x110], bl
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
cmp dword [esi + 0x44], 8
jb 0x10002129
mov eax, dword [esi + 0x30]
jmp 0x1000212c
lea eax, [esi + 0x30]
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push eax
mov ebx, 0x80000002
push ebx
call edi
cmp dword [esi + 0x28], 8
jb 0x10002146
mov esi, dword [esi + 0x14]
jmp 0x10002149
add esi, 0x14
push esi
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100021c5
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xa4
mov eax, 0x10041dfc
call fcn.100296da
lea eax, [ebp - 0x58]
mov esi, ecx
call fcn.10001cb9
lea eax, [ebp - 0x58]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.100036b2
test al, al
jne 0x10002217
mov eax, esi
call fcn.1000209d
push edi
push 1
lea esi, [ebp - 0x38]
call fcn.10005985
push edi
push 1
lea esi, [ebp - 0x58]
call fcn.10005985
xor al, al
call fcn.1002975d
ret
cmp dword [ebp - 0x18], 2
jne 0x100021f9
push 0xffffffffffffffff
lea edi, [esi + 0xf4]
push edi
xor ebx, ebx
lea eax, [ebp - 0x38]
mov byte [esi + 0xf0], 1
call fcn.1000582e
lea eax, [ebp - 0x8c]
mov ecx, edi
mov byte [esi + 0x110], bl
call fcn.10004c3c
mov ebx, eax
lea eax, [ebp - 0x94]
mov ecx, edi
call fcn.10004c5c
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x84]
mov ecx, edi
call fcn.10004c3c
push dword [ebx + 4]
mov ecx, dword [ebp - 0x78]
push dword [ebx]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x7c]
push eax
call fcn.100093be
add esp, 0x1c
cmp dword [esi + 0x28], 8
jb 0x10002292
mov ecx, dword [esi + 0x14]
jmp 0x10002295
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x74]
push eax
mov edx, str.content
call fcn.1000b410
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x60], 0
jne 0x100022db
xor bl, bl
push 0
push 1
lea esi, [ebp - 0x74]
call fcn.10005985
push 0
push 1
lea esi, [ebp - 0x38]
call fcn.10005985
push 0
push 1
lea esi, [ebp - 0x58]
call fcn.10005985
mov al, bl
jmp 0x10002211
cmp dword [edi + 0x18], 8
jb 0x100022e6
mov eax, dword [edi + 4]
jmp 0x100022e9
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000230e
cmp dword [edi + 0x18], 8
jb 0x10002300
mov edi, dword [edi + 4]
jmp 0x10002303
add edi, 4
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.1000123a
pop ecx
pop ecx
mov edx, eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.1000235d
push 0
push 1
lea ecx, [ebp - 0xb0]
call fcn.100057e3
mov bl, 1
jmp 0x100022b0
Function at 0x10002c83
Capabilities:
Check if file exists

Disassembly:
push pe_nt_image_headers32
mov eax, 0x10041af3
call fcn.100296da
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ebx
call fcn.1000507e
xor edi, edi
mov dword [ebp - 4], ebx
inc edi
push 0x10045db0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x40], edi
call fcn.10004ad7
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.10001afd
push ebx
push edi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.100057e3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10002ce4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002e86
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10002cff
lea eax, [ebp - 0x2c]
push eax
call fcn.1001286f
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x10002e72
push 0x10045db4
lea esi, [ebp - 0x94]
call fcn.10004b6d
push 0x100458ec
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.10004ad7
mov eax, esi
push eax
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 5
push dword [ebp - 0x34]
lea eax, [ebp - 0x5c]
push eax
call fcn.10001c5d
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0xb0]
call fcn.100057e3
push ebx
push edi
mov byte [ebp - 4], 8
call fcn.10005985
push dword [ebp - 0x34]
call fcn.100128de
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x48]
cmp eax, ebx
je 0x10002d8e
cmp eax, dword [ebp - 0x5c]
je 0x10002d93
call fcn.10028dac
cmp dword [ebp - 0x34], esi
je 0x10002e60
lea esi, [ebp - 0x38]
call fcn.100078e1
add eax, 0xc8
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.1000934c
pop ecx
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 8
jb 0x10002dc7
mov eax, dword [eax + 4]
jmp 0x10002dca
add eax, 4
push 0x10045dc4
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1000b1eb
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.1000928a
pop ecx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.1000975f
pop ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x3c]
call fcn.10009656
lea eax, [ebp - 0xec]
push eax
mov byte [ebp - 4], 0xb
call fcn.100050b4
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 4], 0xa
call fcn.100050b4
lea esi, [ebp - 0x74]
call fcn.10005dae
push dword [ebp - 0x74]
call fcn.10028e08
pop ecx
push ebx
push edi
lea esi, [ebp - 0xcc]
mov byte [ebp - 4], 8
call fcn.10005985
lea esi, [ebp - 0x38]
call fcn.10005cb5
jmp 0x10002d7f
lea esi, [ebp - 0x5c]
call fcn.10006376
push dword [ebp - 0x5c]
call fcn.10028e08
jmp 0x10002e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.das_open_failed:__d
call fcn.1000d6ed
pop ecx
jmp 0x10002e90
push str.das_not_found
call fcn.1000d6ed
pop ecx
push ebx
push edi
lea esi, [ebp - 0x30]
call fcn.10005985
mov eax, dword [ebp - 0x3c]
call fcn.1002975d
ret 4
Function at 0x10002f91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp dword [ebp + 0x18], 8
push esi
push edi
lea ebx, [ebp + 4]
jb 0x10002fa6
mov eax, dword [ebx]
jmp 0x10002fa8
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
je 0x10003073
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10045e18
push edi
call esi
test eax, eax
je 0x100030d1
push str..dll
push edi
call esi
test eax, eax
je 0x100030d1
push str..msi
push edi
call esi
test eax, eax
je 0x100030d1
push str..sys
push edi
call esi
test eax, eax
je 0x100030d1
push str..cat
push edi
call esi
test eax, eax
je 0x100030d1
push str..ocx
push edi
call esi
test eax, eax
je 0x100030d1
push str..ini
push edi
call esi
test eax, eax
je 0x100030d1
push str..inf
push edi
call esi
test eax, eax
je 0x100030d1
push str..bat
push edi
call esi
test eax, eax
je 0x100030d1
push str..cmd
push edi
call esi
test eax, eax
je 0x100030d1
push str..nls
push edi
call esi
test eax, eax
je 0x100030d1
push str..sys
push edi
call esi
test eax, eax
je 0x100030d1
push 8
pop esi
cmp dword [ebp + 0x18], esi
jb 0x1000307f
mov eax, dword [ebx]
jmp 0x10003081
mov eax, ebx
push 1
push eax
call fcn.1000f7d1
pop ecx
pop ecx
test eax, eax
je 0x100030d1
cmp dword [ebp + 0x18], esi
jb 0x10003098
mov eax, dword [ebx]
jmp 0x1000309a
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100030b5
cmp dword [ebp + 0x18], esi
jb 0x100030ad
mov ebx, dword [ebx]
push ebx
push str.pass_invalid_file:_ls
jmp 0x100030ca
test al, 6
jne 0x100030bd
xor al, al
jmp 0x100030d3
cmp dword [ebp + 0x18], esi
jb 0x100030c4
mov ebx, dword [ebx]
push ebx
push str.pass_hide_system_file:_ls
call fcn.100210eb
pop ecx
pop ecx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4