joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004310
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10016040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi + 0xe8], eax
jne 0x1000433e
cmp dword [edi + 0xec], ebx
je 0x10004429
and dword [ebp - 0x14], 0
lea ecx, [edi + 0x30]
and dword [ebp - 0x10], 0
mov dword [edi + 0xe8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [edi + 0xec], ebx
mov dword [ebp - 8], ebx
call fcn.1000473e
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
push esi
sete byte [ebp - 0x25]
and dword [ebp - 0x2c], 0
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10004391
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x2c], eax
mov edx, dword [edi + 0x9c]
mov ecx, dword [edi + 0xa4]
mov esi, dword [edi + 0x98]
sub ecx, edx
mov eax, dword [edi + 0xa0]
push 0x10
push ecx
sub eax, esi
push eax
push edx
push esi
xor esi, esi
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
push esi
push 0x491
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
test eax, eax
je 0x100043db
mov ecx, edi
call fcn.1000473e
cmp dword [ebp - 0x2c], 0
je 0x100043ec
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp - 0x25], 0
je 0x100043fb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x10004429
mov eax, dword [edi + 0x98]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0xa4]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xa0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.10009a12
mov esp, ebp
pop ebp
ret 8

Function at 0x10008ab3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
cmp eax, 0x1a
jl 0x10008b0b
mov eax, dword [edi + 8]
cmp eax, dword [edi]
jl 0x10008b0b
push 0
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push 0x10
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi]
push eax
push dword [edi + 4]
push dword [edi]
push 0
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.1000473e
push 1
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebx
pop ebp
ret 4

Function at 0x10009075
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8
Function at 0x402355
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, eax
call fcn.004023d0
push 0x4448e0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x4023cb
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.CredReadA
push eax
call edi
push str.CredFree
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CredDeleteA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CredEnumerateA
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CredEnumerateW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x18], eax
pop edi
je 0x4023c6
cmp dword [esi + 0xc], 0
je 0x4023c6
mov dword [esi + 4], 1
jmp 0x4023cb
call fcn.004023d0
mov eax, dword [esi + 4]
pop esi
ret

Function at 0x40247a
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x4024db
push edi
push 0x4448e0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.CryptAcquireContextA
push eax
mov dword [esi], eax
call edi
push str.CryptReleaseContext
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.CryptCreateHash
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CryptGetHashParam
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CryptHashData
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CryptDestroyHash
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
ret

Function at 0x403008
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push dword [ebp + 0xc]
call fcn.00406668
test eax, eax
pop ecx
je 0x4030e8
push dword [ebp + 0xc]
call fcn.004062cc
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x4030e8
push ebx
push esi
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp ebx, esi
jbe 0x4030dd
mov eax, 0x1388
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
lea edi, [ebx + 0xa]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
call fcn.004077a3
mov esi, dword [ebp - 0x1c]
push ebx
push esi
push dword [ebp - 4]
call fcn.00406c0e
push 8
push 0
add esi, ebx
push esi
call sub.msvcrt.dll_memset
imul ebx, ebx, 3
add esp, 0x18
mov edi, ebx
lea esi, [ebp - 0x10]
call fcn.004077a3
shr ebx, 1
push ebx
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402bda
lea ecx, [ebp - 0x28]
call fcn.0040778a
mov ecx, esi
call fcn.0040778a
lea ecx, [ebp - 0x1c]
call fcn.0040778a
pop edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
leave
ret 8
Function at 0x4052ac
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_seamonkey.exe
mov esi, eax
push 0x80000002
call fcn.00410f16
add esp, 0xc
cmp word [esi], 0
je 0x4052de
push esi
call fcn.00406668
test eax, eax
pop ecx
je 0x4052de
xor eax, eax
inc eax
jmp 0x4052fe
push 0x104
push esi
push str._programfiles_Sea_Monkey
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push esi
xor edi, edi
call fcn.004051e1
test eax, eax
jne 0x4052d9
and word [esi], di
pop edi
pop esi
pop ecx
ret
Function at 0x405302
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe38
push esi
push edi
xor esi, esi
push 0x208
lea eax, [ebp - 0x636]
push esi
push eax
mov word [ebp - 0x638], si
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMozilla
push 0x80000002
mov word [ebx], si
call fcn.00410ea3
add esp, 0xc
test eax, eax
jne 0x4054b0
push 0x1fe
lea eax, [ebp - 0x426]
push esi
push eax
mov word [ebp - 0x428], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 8], esi
push esi
jmp 0x405494
push 7
lea eax, [ebp - 0x428]
push str.mozilla
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x405487
push 0x208
lea eax, [ebp - 0x226]
push esi
push eax
mov word [ebp - 0x228], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x7fe
lea eax, [ebp - 0xe36]
push esi
push eax
mov word [ebp - 0xe38], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push str._s_bin
lea eax, [ebp - 0xe38]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
push str.PathToExe
lea eax, [ebp - 0xe38]
push eax
push dword [ebp - 4]
lea esi, [ebp - 0x228]
call fcn.00410f16
add esp, 0x1c
mov eax, esi
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
test eax, eax
pop ecx
pop ecx
je 0x40542c
and word [eax], 0
cmp word [ebp - 0x228], 0
je 0x405485
lea eax, [ebp - 0x228]
push eax
lea edi, [ebp - 0x10]
call fcn.004051e1
test eax, eax
je 0x405485
lea eax, [ebp - 0x18]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jg 0x405464
cmp word [ebp - 0x638], 0
jne 0x405485
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x638]
push eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
xor esi, esi
inc dword [ebp - 8]
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00410f58
add esp, 0xc
test eax, eax
je 0x405388
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x638]
push eax
push ebx
call sub.msvcrt.dll_wcscpy
cmp word [ebx], si
pop ecx
pop ecx
jne 0x405522
push 0x104
push ebx
push str._programfiles_Mozilla_Firefox
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push ebx
xor edi, edi
call fcn.004051e1
test eax, eax
jne 0x4054e4
mov word [ebx], si
cmp word [ebx], si
jne 0x405522
mov esi, ebx
call fcn.004066ac
push ebx
xor edi, edi
call fcn.004051e1
test eax, eax
jne 0x4054ff
and word [ebx], ax
cmp word [ebx], 0
jne 0x405520
push ebx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push ebx
xor edi, edi
call fcn.004051e1
test eax, eax
jne 0x405520
and word [ebx], ax
xor esi, esi
xor eax, eax
cmp word [ebx], si
pop edi
setne al
pop esi
leave
ret
Function at 0x405c96
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2020
call fcn.00442d30
push ebx
push esi
push edi
call fcn.004106f1
push dword [ebp + 0xc]
call fcn.004062cc
pop ecx
mov dword [ebp - 0xc], eax
call fcn.004106f1
cmp dword [ebp - 0xc], 0xffffffff
je 0x405ee3
xor ebx, ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x405eda
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push esi
push edi
push dword [ebp - 0xc]
call fcn.00406c0e
mov byte [edi + esi], bl
add esp, 0xc
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x41b]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x41c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x201b]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x201c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1400
lea eax, [ebp - 0x1c1c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x405eb9
call fcn.004106f1
xor ebx, ebx
cmp dword [0x450df4], ebx
jne 0x405ed3
cmp dword [ebp - 0x10], ebx
jle 0x405eb6
lea eax, [ebp - 0x41c]
push 0x444f3c
push eax
call sub.msvcrt.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x405db8
cmp dword [ebp - 0x14], ebx
je 0x405da9
mov byte [ebp - 0x1c1c], bl
mov byte [ebp - 0x181c], bl
mov byte [ebp - 0x141c], bl
mov byte [ebp - 0x101c], bl
mov byte [ebp - 0x201c], bl
jmp 0x405db0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], ebx
jmp 0x405eb6
cmp dword [ebp - 0x14], ebx
je 0x405eb6
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x405dd7
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x201c]
jmp 0x405e11
cmp eax, 1
jne 0x405deb
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x141c]
jmp 0x405e11
cmp eax, 2
jne 0x405dff
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x1c1c]
jmp 0x405e11
cmp eax, 3
jne 0x405e1e
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x101c]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
jmp 0x405eb3
cmp eax, 4
jne 0x405e8f
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x181c]
push eax
call sub.msvcrt.dll_strcpy
push esi
lea eax, [ebp - 0x81b]
push ebx
push eax
mov byte [ebp - 0x81c], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x81c]
add esp, 0x14
push eax
call fcn.00406ef2
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x81c]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x201c]
push eax
push dword [ebp + 8]
call fcn.004056c5
mov byte [ebp - 0x1c1c], bl
mov byte [ebp - 0x181c], bl
mov byte [ebp - 0x141c], bl
mov byte [ebp - 0x101c], bl
jmp 0x405eb3
jle 0x405eb3
cmp byte [ebp - 0x41c], bl
je 0x405eb0
lea eax, [ebp - 0x41c]
push 0x444f40
push eax
call sub.msvcrt.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x405eb3
mov dword [ebp - 8], ebx
inc dword [ebp - 8]
inc dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x41c]
push eax
mov ebx, edi
call fcn.0040552e
test eax, eax
jne 0x405d51
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4062fe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x406483
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.004062cc
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x406515
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4064fe
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4064fe
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x406507
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x40651e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

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

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

Function at 0x406815
Capabilities:
Get common file path

Disassembly:
cmp word [0x450f98], 0
push esi
mov esi, 0x450f98
jne 0x406836
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x4511a4], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x4511a4]
pop ecx
pop ecx
pop esi
ret

Function at 0x406a9c
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x4444f8
push eax
push eax
push dword [esp + 0x14]
push 0x445058
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x406c2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x4457ec
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret
Function at 0x406f5d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406fba
cmp word [ebp - 0x224], 0x2e
jne 0x406fa0
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x406f82
jmp 0x406fb3
mov edi, dword [ebp + 0xc]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4075e0
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40760c
lea eax, [esi + 0x28c]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x407627
lea ecx, [esi + 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov dword [esp + 4], eax
jne 0x40762e
call fcn.00407679
cmp dword [esp + 4], 0
je 0x407672
push ebx
push ebp
push edi
lea edi, [esi + 0x4dc]
lea ebx, [esi + 0x2b8]
add esi, 0x764
push esi
call sub.msvcrt.dll_wcslen
push ebx
mov ebp, eax
call sub.msvcrt.dll_wcslen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x40766b
push ebx
push esi
mov eax, edi
call fcn.0040679b
pop ecx
pop ecx
jmp 0x40766f
and word [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x407ceb
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0xc]
xor ebx, ebx
mov eax, edi
mov word [esi], bx
call fcn.00403ecb
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x407e38
cmp dword [edi + 0x414], 0x20
jne 0x407e38
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
mov dword [ebp - 8], ebx
call fcn.00407a13
test eax, eax
je 0x407e38
mov edi, 0x8000
lea esi, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0x1388
call fcn.004077a3
push dword [ebp - 4]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x407e1c
push ebx
push ebx
push 0x80000000
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
cmp dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x407e17
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, dword [ebp + 8]
push 0x445130
mov dword [ebp - 8], eax
call fcn.004065e6
pop ecx
push edi
call fcn.004062e5
pop ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x407e0d
push dword [ebp - 8]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x407e08
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0x18]
call esi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x407e30
push eax
mov eax, dword [ebp + 0x10]
call fcn.00403ecb
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
call fcn.0040778a
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4084f5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6390
call fcn.00442d30
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40863e
push 0x20
lea eax, [ebp - 0x90]
push eax
push ebx
push edi
call fcn.00406c4d
add esp, 0x10
cmp byte [ebp - 0x78], 0x34
je 0x408637
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 8], eax
mov eax, 0x5000
cmp dword [ebp - 8], eax
mov dword [ebp + 0xc], eax
jbe 0x408637
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 0x2190]
push edi
call fcn.00408464
test eax, eax
je 0x408623
push 4
lea eax, [ebp - 0x215c]
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0x100
jbe 0x4085a4
mov dword [ebp - 4], 0x68
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x2190]
push 0x40
push eax
call sub.msvcrt.dll_strchr
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x408618
inc esi
push 0x3f
push esi
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x4085cf
mov byte [eax], bl
push esi
call sub.msvcrt.dll__strlwr
mov dword [esp], 0x41fe
lea eax, [ebp - 0x638e]
push ebx
push eax
mov word [ebp - 0x6390], bx
call sub.msvcrt.dll_memset
push 0x2000
lea eax, [ebp - 0x6390]
push eax
push esi
call fcn.00406f2f
add esp, 0x18
push ebx
lea eax, [ebp - 0x6390]
push eax
mov eax, dword [ebp + 8]
add eax, 8
call fcn.004070b3
mov eax, dword [ebp - 0xc]
shl eax, 7
add dword [ebp + 0xc], eax
jmp 0x40862a
add dword [ebp + 0xc], 0x80
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x408560
pop esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebx
leave
ret 8
Function at 0x4086e5
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
xor edi, edi
push 0x208
mov esi, eax
lea eax, [ebp - 0x22e]
push edi
push eax
mov word [ebp - 0x230], di
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x22
pop eax
lea ebx, [ebp - 0x230]
call fcn.00411854
mov ebx, dword [esi + 0x24]
lea eax, [ebp - 0x230]
push eax
mov ecx, esi
call fcn.00408644
lea eax, [esi + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x4453b0
call fcn.004082b7
cmp ebx, dword [esi + 0x24]
jne 0x40882f
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov edi, 0xfa00
lea esi, [ebp - 0x18]
mov dword [ebp - 0x10], 0x1388
mov ebx, edi
call fcn.004077a3
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
push esi
push str.visited:
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
test eax, eax
mov dword [ebp - 8], eax
je 0x408827
mov eax, dword [esi + 4]
push 0x40
push eax
call sub.msvcrt.dll_wcschr
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4087cf
mov eax, dword [ebp - 0xc]
inc edi
push 0
inc edi
push edi
call fcn.004070b3
mov eax, dword [esi + 4]
push 0x3f
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x4087cf
and word [eax], 0
mov eax, dword [ebp - 0xc]
push 0
push edi
call fcn.004070b3
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x40878f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x40881e
mov ebx, dword [ebp - 4]
add ebx, 0x2710
mov edi, ebx
lea esi, [ebp - 0x18]
call fcn.004077a3
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x40878f
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
lea ecx, [ebp - 0x18]
call fcn.0040778a
pop edi
pop esi
pop ebx
leave
ret