joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f30d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
and byte [ebp - 0x154], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
and byte [ebp - 0x258], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x257]
and dword [ebp - 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x103
lea eax, [ebp - 0x154]
push esi
push eax
mov dword [ebp - 0x50], str.smss.exe
mov dword [ebp - 0x4c], str.csrss.exe
mov dword [ebp - 0x48], str.winlogon.exe
mov dword [ebp - 0x44], str.services.exe
mov dword [ebp - 0x40], str.svchost.exe
mov dword [ebp - 0x3c], str.spoolsv.exe
mov dword [ebp - 0x38], str.rundll32.exe
mov dword [ebp - 0x34], str.regsvr32.exe
mov dword [ebp - 0x30], str.shdocvw.dll
mov dword [ebp - 0x2c], str.Shell32.dll
mov dword [ebp - 0x28], str.Oleaut32.dll
mov dword [ebp - 0x24], str.Actxprxy.dll
mov dword [ebp - 0x20], str.Mshtml.dll
mov dword [ebp - 0x1c], str.Urlmon.dll
mov dword [ebp - 0x18], str.Msjava.dll
mov dword [ebp - 0x14], str.Browseui.dll
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
and dword [ebp - 8], 0
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x154]
push eax
push 0x10070058
lea eax, [ebp - 0x258]
push esi
push eax
call ebx
push dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea eax, [ebp - 0x258]
push eax
call edi
add esp, 0x1c
test eax, eax
je 0x1002f47b
inc dword [ebp - 8]
add dword [ebp - 4], 4
cmp dword [ebp - 8], 0x10
jb 0x1002f3de
lea eax, [ebp - 0x154]
push esi
push eax
mov dword [ebp - 0x10], str.Explorer.EXE
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
and dword [ebp - 8], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x154]
push eax
push 0x10070058
lea eax, [ebp - 0x258]
push esi
push eax
call ebx
push dword [ebp + 8]
lea eax, [ebp - 0x258]
push eax
call edi
add esp, 0x1c
test eax, eax
je 0x1002f47b
inc dword [ebp - 8]
add dword [ebp - 4], 4
cmp dword [ebp - 8], 1
jb 0x1002f43e
jmp 0x1002f482
mov dword [ebp - 0xc], 1
call fcn.1002f02d
test eax, eax
jne 0x1002f4e5
and byte [ebp - 0x35c], al
push 0x40
pop ecx
lea edi, [ebp - 0x35b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x154]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x154]
push eax
push str._sRundll32.exe
lea eax, [ebp - 0x35c]
push esi
push eax
call ebx
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0x18
test eax, eax
jne 0x1002f4e5
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100334a6
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x100575fc
call fcn.10052270
sub esp, 0x318
and byte [ebp - 0x324], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x323]
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionRun
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x14]
push eax
push str.360DeepscanRunOnce
push ebx
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov eax, dword [0x10070040]
mov dword [ebp - 0x10], eax
and byte [ebp - 0x11c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x11c]
push 0x104
push eax
push dword [0x10078af4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x11c]
push str...deepscandsmain.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x10]
push str.__s___dbootini
push eax
call fcn.10009c35
add esp, 0xc
lea eax, [ebp - 0x324]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10033584
push 1
pop esi
jmp 0x100335a3
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
push 1
push str.360DeepscanRunOnce
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000349d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10034df2
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10057924
call fcn.10052270
sub esp, 0x124
cmp dword [ebp + 0x10], 0xffffffff
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], 1
jne 0x10034e19
xor eax, eax
jmp 0x10034fe8
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x14], esi
push edi
lea esi, [esi + esi*2]
shl esi, 3
mov ecx, dword [ebx + 0x9c]
test ecx, ecx
je 0x10034fe3
mov eax, dword [ebx + 0xa0]
push 0x18
sub eax, ecx
pop ecx
cdq
idiv ecx
cmp dword [ebp + 0x14], eax
jae 0x10034fe3
mov eax, dword [ebx + 0x9c]
mov ecx, dword [esi + eax + 0x14]
cmp ecx, dword [ebp + 0xc]
jne 0x10034fd8
mov ecx, dword [ebp + 0x10]
cmp dword [esi + eax], ecx
jne 0x10034fd8
cmp dword [esi + eax + 0xc], 4
jne 0x10034ee5
push dword [esi + eax + 0x10]
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x9c]
pop ecx
mov edi, dword [esi + eax + 8]
lea eax, [esi + eax + 4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001e895
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
push str.SOFTWAREClassesCLSID_
push eax
call fcn.10018353
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push 4
push ecx
push 4
push edi
push eax
mov ecx, ebx
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.1004cb1f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.1000349d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1000349d
test edi, edi
je 0x10034ee5
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x9c]
cmp dword [esi + edx + 0xc], 1
je 0x10034efd
cmp dword [esi + edx + 0xc], 2
jne 0x10034fa5
and byte [ebp - 0x130], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [esi + edx + 0x10]
lea eax, [ebp - 0x130]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [ebx + 0x9c]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
mov eax, dword [esi + edi + 8]
mov dword [ebp - 0x18], eax
lea eax, [esi + edi + 4]
push eax
call fcn.1001e895
push eax
lea eax, [ebp - 0x20]
push str.SOFTWAREClassesCLSID_
push eax
mov dword [ebp - 4], 2
call fcn.10018353
push dword [ebp - 0x14]
mov eax, dword [eax]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 3
push ecx
mov ecx, ebx
push dword [esi + edi + 0xc]
push dword [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.1004cb1f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.1000349d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000349d
mov ecx, dword [ebx + 0x9c]
test ecx, ecx
jne 0x10034fb3
xor eax, eax
jmp 0x10034fc1
mov eax, dword [ebx + 0xa0]
push 0x18
sub eax, ecx
pop ecx
cdq
idiv ecx
mov ecx, dword [ebp + 0x14]
inc ecx
cmp ecx, eax
jae 0x10034fd8
mov eax, dword [ebx + 0x9c]
mov eax, dword [esi + eax + 0x18]
cmp eax, dword [ebp + 0x10]
jne 0x10034fe3
inc dword [ebp + 0x14]
add esi, 0x18
jmp 0x10034e27
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x1003b2c1
Capabilities:
Delete file

Disassembly:
mov eax, 0x10058de8
call fcn.10052270
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1005e5a0
push dword [esi + 0x94]
lea ebx, [esi + 0x94]
mov dword [ebp - 4], 0xd
call dword [sym.imp.MSVCRT.dll_remove]
mov eax, dword [esi + 0xac]
lea edi, [esi + 0xa4]
pop ecx
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call fcn.1000a202
lea ecx, [esi + 0x914]
mov byte [ebp - 4], 0xc
call fcn.1000349d
lea ecx, [esi + 0x904]
mov byte [ebp - 4], 0xb
call fcn.1001f2d7
lea ecx, [esi + 0x900]
mov byte [ebp - 4], 0xa
call fcn.1000349d
lea ecx, [esi + 0x8fc]
mov byte [ebp - 4], 9
call fcn.1000349d
lea ecx, [esi + 0xb8]
mov byte [ebp - 4], 8
call fcn.1001c851
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.10003457
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 6
call fcn.1000349d
lea ecx, [esi + 0x9c]
mov byte [ebp - 4], 5
call fcn.1000349d
lea ecx, [esi + 0x98]
mov byte [ebp - 4], 4
call fcn.1000349d
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.1000349d
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 2
call fcn.10003457
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 1
call fcn.10003457
and byte [ebp - 4], 0
lea ecx, [esi + 0x64]
call fcn.1003e52b
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.1004ab6e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1003ccac
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x100591e0
call fcn.10052270
sub esp, 0x220
and byte [ebp - 0x128], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
and byte [ebp - 0x22c], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x10078b14
cmp dword [ebp + 8], eax
je 0x1003ce53
cmp dword [ebp + 0xc], eax
je 0x1003ce53
cmp dword [ebp + 0x10], 0
push ebx
push esi
je 0x1003cd2d
push dword [ebp + 8]
mov edi, 0x10070ee4
mov esi, 0x103
lea eax, [ebp - 0x22c]
push edi
push esi
push eax
call fcn.10001f81
add esp, 0x10
push dword [ebp + 0xc]
jmp 0x1003cd4e
push dword [ebp + 0xc]
mov edi, 0x10070ee4
mov esi, 0x103
lea eax, [ebp - 0x22c]
push edi
push esi
push eax
call fcn.10001f81
add esp, 0x10
push dword [ebp + 8]
push edi
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.10001f81
add esp, 0x10
lea ecx, [ebp - 0x18]
push 1
pop eax
mov dword [ebp + 0xc], eax
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.1001c0bc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.1001c192
test al, al
jne 0x1003cd8c
xor esi, esi
jmp 0x1003ce41
mov ecx, dword [ebp - 0x10]
push 4
mov eax, ecx
pop esi
cdq
idiv esi
mov eax, ecx
push 4
mov dword [ebp + 8], ecx
pop ecx
mov esi, edx
neg esi
cdq
sbb esi, esi
idiv ecx
neg esi
add esi, eax
mov edi, esi
shl edi, 2
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1003cd85
push edi
push 0x20
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
push ebx
call fcn.1001c19c
lea ecx, [ebp - 0x18]
call fcn.1001c179
test esi, esi
mov eax, ebx
jle 0x1003cdf0
xor dword [eax], 0x4f484951
add eax, 4
dec esi
jne 0x1003cde4
lea eax, [ebp - 0x22c]
push 2
push eax
lea ecx, [ebp - 0x24]
call fcn.1001c0bc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1001c192
test al, al
je 0x1003ce2b
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.1001c1bd
test eax, eax
jg 0x1003ce23
and dword [ebp + 0xc], 0
lea ecx, [ebp - 0x24]
call fcn.1001c179
push ebx
call fcn.10052200
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp - 0x24]
call fcn.1001c13a
mov esi, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1001c13a
mov eax, esi
pop esi
pop ebx
jmp 0x1003ce55
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x100449be
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1005aa00
call fcn.10052270
sub esp, 0x12c
and byte [ebp - 0x138], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x137]
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionpoliciesRatings
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x100777f8
push ebx
push edi
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea eax, [ebp - 0x138]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10044afd
push ebx
lea ecx, [esi + 0x6c]
mov dword [esi + 0x68], edi
call fcn.100036ad
lea edi, [esi + 0x70]
push 0x100777e0
mov ecx, edi
call fcn.100036ad
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x30], al
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x10078b14
mov dword [ebp - 4], eax
call fcn.100034da
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x34], esp
push ebx
call fcn.100034da
and byte [ebp - 4], 0
lea eax, [ebp - 0x30]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1001e483
add esp, 0x18
mov ebx, dword [edi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push 0x1007437c
push eax
mov byte [ebp - 4], 3
call fcn.10018353
mov eax, dword [eax]
mov edi, dword [edi]
lea ecx, [ebp - 0x30]
push 4
push ecx
push 0
push 0
push ebx
push 0x10078b14
push eax
push edi
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.1004ac01
mov dword [esi + 0x64], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.1000349d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.1000349d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10003457
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10045c6a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1005ae18
call fcn.10052270
sub esp, 0x130
and byte [ebp - 0x13c], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13b]
mov ebx, str.LinksFolderName
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
mov edi, str.SoftwareMicrosoftInternet_ExplorerToolbar
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push edi
push SysReAllocString
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x10045e00
lea eax, [ebp - 0x13c]
push 0x100779e4
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
je 0x10045e00
mov eax, edi
mov dword [esi + 0x68], SysStringLen
test eax, eax
je 0x10045d02
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea ecx, [esi + 0x6c]
call fcn.100035e4
mov eax, ebx
lea edi, [esi + 0x70]
test eax, eax
je 0x10045d1c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
push eax
mov ecx, edi
call fcn.100035e4
mov ebx, 0x100779ec
lea edi, [esi + 0x74]
mov eax, ebx
test eax, eax
je 0x10045d3a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
push eax
mov ecx, edi
call fcn.100035e4
mov al, byte [ebp - 0xd]
xor ebx, ebx
mov byte [ebp - 0x38], al
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
push 1
push ecx
lea eax, [esi + 0x70]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 4], ebx
call fcn.1001e895
push ecx
lea eax, [esi + 0x6c]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 1
call fcn.1001e895
push dword [esi + 0x68]
and byte [ebp - 4], bl
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1001e483
add esp, 0x18
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push 0x1007437c
push eax
call fcn.10018353
mov eax, dword [eax]
mov edi, dword [edi]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
push 4
push eax
push ebx
push 4
mov byte [ebp - 4], 4
call fcn.1001e056
pop ecx
push eax
mov ecx, esi
push dword [ebp - 0x20]
push 0x10078b14
push dword [ebp - 0x1c]
push edi
call fcn.1004ac01
mov dword [esi + 0x64], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.1000349d
and byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.1000349d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10003457
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10048c2e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1005b648
call fcn.10052270
sub esp, 0x28
mov al, byte [ebp + 0xb]
push ebx
xor ebx, ebx
push esi
push edi
mov byte [ebp - 0x34], al
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ebx
push eax
call fcn.10048e28
pop ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.100034c9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.1000349d
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x10048d59
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
sar ecx, 2
cmp dword [ebp - 0x10], ecx
jae 0x10048d59
mov ecx, dword [ebp - 0x10]
mov esi, ecx
shl esi, 2
push dword [esi + eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10048d51
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + eax]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.10048eed
mov edi, dword [ebp - 0x14]
add esp, 0xc
cmp edi, ebx
je 0x10048d51
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x4c573351
cmp esi, ebx
je 0x10048cfd
xor ecx, ecx
cmp edi, ebx
lea eax, [ebp - 0x18]
jbe 0x10048cfd
lea edx, [ebp - 0x14]
cmp eax, edx
jne 0x10048cf2
lea eax, [ebp - 0x18]
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc eax
inc ecx
cmp ecx, edi
jb 0x10048ce8
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.10022876
push dword [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.10052200
lea ecx, [ebp - 0x20]
mov dword [esp], 0x10070f98
call fcn.100034da
push dword [ebp + 8]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10048d8c
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.1000349d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.1000349d
inc dword [ebp - 0x10]
jmp 0x10048c77
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x10048d67
xor esi, esi
jmp 0x10048d6f
mov esi, dword [ecx + 8]
sub esi, eax
sar esi, 2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10003457
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10048eed
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [edi], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x10048f63
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esi], eax
je 0x10048f5a
add eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi], eax
mov ecx, dword [esi]
inc ecx
inc ecx
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp + 0x10]
push ebx
push eax
push dword [esi]
push dword [edi]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10048f68
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push dword [esp + 0x14]
push edi
call fcn.10048fc9
pop ecx
xor ebx, ebx
pop ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x10048fb2
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x10048fb2
mov esi, ebx
shl esi, 2
push dword [esi + eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10048faf
add esi, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push esi
call fcn.10049425
inc ebx
jmp 0x10048f7d
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x10048fbd
xor eax, eax
jmp 0x10048fc5
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
pop edi
pop esi
pop ebx
ret
Function at 0x1004a4f5
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1005b87c
call fcn.10052270
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.100034da
and dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.1000334b
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CharLowerA]
mov esi, 0x10078b14
lea ecx, [ebp + 0xc]
push esi
push str.res:__
call fcn.10009f51
push esi
push str.file:__
lea ecx, [ebp + 0xc]
call fcn.10009f51
and byte [ebp - 0x130], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x130]
push 0x104
push eax
call fcn.1000516a
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ebx, 0x1007828c
je 0x1004a5b2
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.1004c4f6
jmp 0x1004a68d
mov eax, dword [0x10070040]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [edi]
push str.SOFTWAREMicrosoftInternet_ExplorerMenuExt
push 0x10070058
push eax
call fcn.10009c35
mov al, byte [ebp + 0xb]
add esp, 0x10
mov byte [ebp - 0x28], al
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push esi
mov byte [ebp - 4], 2
call fcn.100034da
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 3
call fcn.1001e895
push dword [edi + 4]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1001e483
add esp, 0x18
push edi
lea eax, [ebp + 8]
push 0x10078244
push eax
mov byte [ebp - 4], 5
call fcn.10018353
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push 2
push ecx
mov ecx, dword [ebp - 0x14]
push 0
push 1
push ebx
push 0x10070cfc
push 0x10078208
push eax
mov byte [ebp - 4], 6
call fcn.1004ac01
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.1000349d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.1000349d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10003457
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000349d
mov edi, dword [edi]
push esi
mov ecx, dword [ebp - 0x14]
push esi
push esi
push dword [ebp + 0xc]
push edi
push ebx
call fcn.1004b0b6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1000349d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8