joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc920
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
mov eax, 3
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x4cc9d3
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x104
push eax
mov ecx, esi
call fcn.004cd9d0
lea ecx, [esp + 0xc]
push ecx
push 0
call fcn.004ce9d0
mov ebx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], 0
add esp, 8
rep stosd dword es:[edi], eax
lea edx, [esp + 0x214]
push 0x104
push edx
mov ecx, esi
stosw word es:[edi], ax
call fcn.004cda30
pop edi
test ebx, ebx
pop ebx
jne 0x4cc9c9
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4cc9c9
mov eax, 2
pop esi
add esp, 0x410
ret
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
setne al
pop esi
add esp, 0x410
ret

Function at 0x4cca90
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x410
cmp eax, 1
push esi
push edi
mov esi, ecx
jne 0x4ccb27
push eax
call fcn.004ce590
add esp, 4
call fcn.004cf160
mov ecx, eax
call fcn.004de8d0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.bookmarks.dat
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.004bac30
add esp, 0xc
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004cf160
mov ecx, eax
call fcn.004de510
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4ccc4f
call fcn.004cf160
mov ecx, eax
call fcn.004de9f0
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 2
jne 0x4ccb68
call fcn.004cf160
mov ecx, eax
call fcn.004de8d0
push 0
call fcn.004ce590
add esp, 4
push 2
push 0
push 0
call fcn.004dc910
add esp, 8
push eax
call fcn.004cf160
mov ecx, eax
call fcn.004de510
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 3
jne 0x4ccb7d
call fcn.004cf160
mov ecx, eax
call fcn.004de8d0
push 3
jmp 0x4ccb3a
cmp eax, 4
jne 0x4ccc4f
mov al, byte [esi + 4]
test al, al
je 0x4ccc4f
push ebx
push 2
call fcn.004ce590
add esp, 4
call fcn.004cf160
mov ecx, eax
call fcn.004de890
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push 0x104
push eax
mov ecx, esi
call fcn.004cd9d0
lea ecx, [esp + 0x214]
push ecx
push 1
call fcn.004ce860
add esp, 8
lea ebx, [esi + 0x28]
mov ecx, esi
push ebx
call fcn.004ccc60
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
push ebx
lea edx, [esp + 0x10]
push 0x103
push edx
mov ecx, esi
stosw word es:[edi], ax
call fcn.004cccb0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 1
pop ebx
cmp eax, edi
jne 0x4ccc3d
lea ecx, [esp + 8]
push edi
push ecx
jmp 0x4ccb51
mov dword [esi + 0x20], edi
call fcn.004cf160
mov ecx, esi
mov dword [eax + 0x14], edi
call fcn.004c66f0
pop edi
pop esi
add esp, 0x410
ret 4
Function at 0x4cccb0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
mov esi, dword [esp + 0x420]
test esi, esi
push edi
mov ebp, ecx
je 0x4ccdaa
mov ebx, dword [esp + 0x42c]
test ebx, ebx
je 0x4ccd93
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 2
jb 0x4ccd93
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x14]
push 0x103
push eax
call fcn.004bac30
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4ccd83
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
mov word [esp + 0x218], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x218]
push 0x104
push edx
mov ecx, ebp
stosw word es:[edi], ax
call fcn.004cda30
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0x218]
push eax
dec ecx
push 0x50f4e4
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 0xc
mov edx, dword [esp + 0x428]
push str.bookmarks.dat
dec edx
push edx
jmp 0x4ccda1
mov eax, dword [esp + 0x428]
push str.bookmarks.dat
dec eax
push eax
push esi
call fcn.004bac30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 0xc
Function at 0x4ccdc0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x4e0
push ebx
push esi
lea eax, [esp + 8]
push edi
xor esi, esi
mov ebx, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.004ce4f0
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 1
jne 0x4cceed
cmp dword [esp + 0x4f0], 2
jne 0x4cceed
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x32
push ecx
stosw word es:[edi], ax
call fcn.004ce430
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe6]
mov word [esp + 0xe4], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2ee]
mov word [esp + 0x2ec], si
rep stosd dword es:[edi], eax
add esp, 8
lea edx, [esp + 0x14]
stosw word es:[edi], ax
push edx
push str._suser.ini
lea eax, [esp + 0xe4]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0xec]
lea edx, [esp + 0x2f4]
push ecx
push 0x103
push edx
call fcn.004bac30
lea eax, [esp + 0x300]
push eax
push 1
call fcn.004ce840
add esp, 0x24
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004ccc60
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x7a]
mov word [esp + 0x78], si
rep stosd dword es:[edi], eax
lea edx, [esp + 0x78]
push 0x104
push edx
stosw word es:[edi], ax
call fcn.004ce470
add esp, 8
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004c6670
mov ecx, eax
call fcn.004c6d10
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret 4
push 1
call fcn.004ce590
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
push edx
call fcn.004ce660
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe6]
mov word [esp + 0xe4], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.bookmarks.dat
lea eax, [esp + 0xe8]
push 0x103
push eax
call fcn.004bac30
add esp, 0x14
push esi
call fcn.004c6670
mov ecx, eax
call fcn.004cc810
lea ecx, [esp + 0xdc]
push ecx
call fcn.004cf160
mov ecx, eax
call fcn.004cf6b0
lea edx, [esp + 0xdc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4ccfb9
cmp dword [esp + 0x10], esi
jne 0x4ccfb9
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e6]
mov word [esp + 0x2e4], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [esp + 0x2e8]
push 6
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4ccfb9
push esi
push 1
lea ecx, [esp + 0x2ec]
push 2
push ecx
call fcn.004cf160
mov ecx, eax
call fcn.004dd5d0
push 1
call fcn.004ce640
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret 4
Function at 0x4cd940
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
mov dx, word [0x52a480]
push esi
mov esi, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x10]
push str.twFav
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x210]
mov ecx, esi
push eax
call fcn.004c66c0
pop edi
pop esi
add esp, 0x410
ret
Function at 0x4ceb60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fb6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
mov dl, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x5d8]
mov byte [ecx], al
mov byte [ecx + 1], dl
mov byte [ecx + 8], bl
call fcn.004e0700
mov al, byte [esp + 0xf]
mov dword [esp + 0x1c], ebx
mov byte [esi + 0x5e8], al
mov dword [esi + 0x5ec], ebx
mov dword [esi + 0x5f0], ebx
mov dword [esi + 0x5f4], ebx
mov cl, byte [esp + 0xf]
mov dword [esi + 0x610], ebx
mov byte [esi + 0x60c], cl
mov dword [esi + 0x614], ebx
mov dword [esi + 0x618], ebx
push 8
push ebx
lea ecx, [esi + 0x626d0]
mov byte [esp + 0x24], 2
call fcn.004ef8b0
lea ecx, [esi + 0x62718]
mov byte [esp + 0x1c], 3
call fcn.004ef160
mov dl, byte [esp + 0xf]
mov dword [esi + 0x62770], ebx
mov byte [esi + 0x6276c], dl
mov dword [esi + 0x62774], ebx
mov dword [esi + 0x62778], ebx
mov dword [esi + 0x6277c], ebx
mov dword [esi + 0x62780], ebx
mov dword [esi + 0x62784], ebx
mov ecx, 0xc
xor eax, eax
lea edi, [esi + 0x44]
mov dword [esi], 0x500cd8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [esi + 0x1c]
push str.1.0.0.3
push eax
call edi
lea ecx, [esi + 0x30]
push str.Favourate
push ecx
call edi
add esp, 0x10
lea edx, [esi + 0x27e]
mov ecx, 0x41
xor eax, eax
mov edi, edx
push str.tw:fav
mov dword [esi + 0x608], ebx
mov dword [esi + 0x624], 4
mov dword [esi + 0x61c], ebx
mov dword [esi + 0x628], 0x4190aaff
mov dword [esi + 0x62c], 0xffffffff
mov dword [esi + 0x5fc], ebx
mov dword [esi + 0x600], 1
mov dword [esi + 0x604], ebx
mov dword [esi + 0x14], 1
mov dword [esi + 0x626cc], ebx
push 0x510594
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x634]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esi + 0x83c]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esi + 0xa44]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esi + 0x3d0]
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esi + 0x388]
rep stosd dword es:[edi], eax
mov ecx, 0x186a0
lea edi, [esi + 0xc4c]
mov dword [esi + 0x384], ebx
xor edx, edx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x3b0]
mov dword [esi + 0x630], 1
lea ecx, [esi + 0x6274c]
mov dword [eax], edx
push ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [esi + 0x18], 0x4190ab00
mov dword [esi + 0x5f8], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x14]
mov eax, 2
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x62764], ebx
mov dword [esi + 0x62768], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x62788], ebx
mov dword [esi + 0x6278c], ebx
mov dword [esi + 0x62790], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ceeb0
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004d1c80
mov eax, dword [esi + 0x608]
test eax, eax
je 0x4ceed6
push eax
call fcn.004ba355
add esp, 4
mov dword [esi + 0x608], 0
mov eax, dword [esi + 0x626cc]
test eax, eax
je 0x4ceef1
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov dword [esi + 0x626cc], 0
mov eax, dword [esi + 0x62768]
test eax, eax
je 0x4cef02
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov eax, dword [esi + 0x62788]
test eax, eax
je 0x4cef5d
push 0x1388
push eax
mov dword [esi + 0x6278c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x62788]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [esp + 4]
mov eax, dword [esi + 0x62788]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x62788]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x62788], 0
add esi, 0x6274c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop esi
pop ecx
ret
Function at 0x4cf1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
push 1
push 4
lea eax, [ebx + 0x624]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
lea ecx, [ebx + 0x620]
mov esi, eax
push 4
push ecx
shl esi, 2
call dword [sym.imp.MSVCRT.dll_fwrite]
lea edx, [esi + eax*4]
lea eax, [ebp - 4]
xor esi, esi
push eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], esi
call fcn.004ce5e0
mov eax, dword [ebp - 4]
add esp, 0x24
cmp eax, 2
jne 0x4cf2e4
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], si
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x210]
push 0x104
push ecx
stosw word es:[edi], ax
call fcn.004c6670
mov ecx, eax
call fcn.004cc8d0
add ebx, 0x44
cmp ebx, esi
jne 0x4cf248
xor edi, edi
jmp 0x4cf275
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004ba380
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x210]
push edx
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x4cf2f4
lea eax, [ebp - 0x210]
test eax, eax
jne 0x4cf295
xor esi, esi
jmp 0x4cf2d0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004ba380
mov esi, esp
push 0
push 0
push edi
push esi
lea edx, [ebp - 0x210]
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 0x510594
push 0x31
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
jmp 0x4cf2f4
add ebx, 0x44
mov ecx, 0xc
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
push eax
push 0x19
push 2
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [ebp - 8]
add esp, 0x10
lea esp, [ebp - 0x21c]
lea eax, [ecx + eax*2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cf320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea eax, [ebx + 0x624]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
je 0x4cf35f
or eax, 0xffffffff
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push 1
lea ecx, [ebx + 0x620]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
je 0x4cf387
or eax, 0xffffffff
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
lea esi, [ebx + 0x44]
mov ecx, 0xc
xor eax, eax
mov edi, esi
push edx
rep stosd dword es:[edi], eax
push 0x32
push 1
push esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
add ebx, 0x1c
mov dword [ebp - 4], eax
push str.1.0.0.3
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jl 0x4cf487
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp + 8], ebx
call fcn.004ce5e0
mov eax, dword [ebp + 8]
add esp, 4
cmp eax, 2
jne 0x4cf465
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], bx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x20c]
push 0x103
push ecx
stosw word es:[edi], ax
call fcn.004c6670
mov ecx, eax
call fcn.004cc8d0
cmp esi, ebx
je 0x4cf441
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.004ba380
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x20c]
push ebx
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x4cf487
or eax, 0xffffffff
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x595430
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4cf487
or eax, 0xffffffff
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x218]
sub eax, 0x32
neg eax
pop edi
pop esi
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cf4a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x620]
mov ecx, dword [esi + 0x61c]
cmp eax, ecx
jle 0x4cf4d2
mov ecx, 0x64
mov edi, dword [esi + 0x61c]
add edi, ecx
mov edx, edi
mov dword [esi + 0x61c], edi
cmp eax, edx
jg 0x4cf4be
mov edi, dword [esi + 0x61c]
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
shl eax, 7
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
add esp, 4
or ebp, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4cf5a4
dec edi
cmp edi, ebx
jl 0x4cf5a0
inc edi
lea edx, [eax + 0x48]
mov dword [esp + 0x10], edi
mov ecx, 0x28b
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, 0x30e
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, 0x30e
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [edx - 0x2c]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
lea eax, [edx - 0x1c]
add edx, 0xc80
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x10]
mov dword [edx - 0xcc8], ebp
mov dword [edx - 0xcc4], ebp
mov dword [edx - 0xcc0], ebx
mov dword [edx - 0xcb4], ebx
mov dword [edx - 0xcbc], 1
mov dword [edx - 0xcb8], ebx
mov dword [edx - 0xc84], ebp
mov dword [edx - 0xc88], ebp
mov dword [edx - 0xc8c], ebp
mov dword [edx - 0xcb0], ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x4cf50c
mov eax, dword [esp + 0x14]
mov edi, eax
jmp 0x4cf5a6
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x608], edi
jne 0x4cf5bc
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0x61c]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 7
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x620]
cmp eax, 0x2710
jge 0x4cf619
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x608]
push ecx
push eax
push 0xc80
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 0x620]
add esp, 0x10
cmp eax, ecx
je 0x4cf655
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x608]
push eax
push 0x2710
push 0xc80
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0x2710
je 0x4cf64b
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov dword [esi + 0x620], 0x2710
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4

Function at 0x4cf670
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x620]
mov edx, dword [esi + 0x608]
push ecx
push 0xc80
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [esi + 0x620]
add esp, 0x10
cmp ecx, eax
pop esi
je 0x4cf6a2
or eax, 0xffffffff
ret 4
Function at 0x4d1b30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4fb838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x6274c]
push ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], 1
mov ecx, 0xc
xor eax, eax
lea edi, [esi + 0x44]
push str.1.0.0.3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [esi + 0x1c]
push eax
mov dword [esp + 0x24], 0
call edi
lea ecx, [esi + 0x30]
push str.Favourate
push ecx
call edi
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x3d0]
mov dword [esi + 0x600], 1
mov dword [esi + 0x604], 0
mov dword [esi + 0x630], 0
rep stosd dword es:[edi], eax
lea eax, [esi + 0x3b0]
xor edx, edx
mov ecx, 0xa
lea edi, [esi + 0x388]
mov dword [eax], edx
add esp, 0x10
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x18], 0x4190ab00
push ecx
mov ecx, esi
call fcn.004d1960
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4d7bd0
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2bc
push esi
lea eax, [esp + 8]
push edi
mov esi, ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 8]
push 0x4009
lea edx, [esp + 0x14]
push 0x2b4
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esp + 8]
mov edi, eax
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Duplicate]
push 0xffffffffffffffff
push eax
mov dword [esi + 0x626cc], eax
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov eax, dword [esp + 0xc]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
pop edi
mov eax, 1
pop esi
add esp, 0x2bc
ret
Function at 0x4d8280
Capabilities:
Create directory
Move file

Disassembly:
sub esp, 0x228
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x23c]
xor ecx, ecx
cmp eax, 3
mov word [esp + 0x18], 0x414
mov dword [esp + 0x1e], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x22], ecx
jne 0x4d82f8
mov esi, dword [esp + 0x238]
mov edi, dword [esp + 0x234]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4d82dd
pop edi
pop esi
add esp, 0x228
ret 0xc
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x228
ret 0xc
cmp eax, 2
jne 0x4d831c
mov eax, dword [esp + 0x238]
mov dword [esp + 0xc], 3
mov word [esp + 0x18], 0x454
mov dword [esp + 0x10], eax
jmp 0x4d83d3
cmp eax, 5
jne 0x4d838b
mov word [esp + 0x28], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x238]
lea edx, [esp + 0x28]
push ecx
push 0x50f4e4
push 0xfa
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x38]
push str..url
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
mov edx, dword [esp + 0x24c]
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.004394e0
add esp, 0x20
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
pop esi
add esp, 0x228
ret 0xc
cmp eax, 1
jne 0x4d83b0
mov edx, dword [esp + 0x238]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x228
ret 0xc
cmp eax, 4
jne 0x4d83d3
mov eax, dword [esp + 0x234]
mov ecx, dword [esp + 0x238]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x228
ret 0xc