joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be7a0
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 0x4be89a
mov ebx, dword [esp + 0x42c]
test ebx, ebx
je 0x4be883
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 2
jb 0x4be883
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.004ad390
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4be873
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.004bf6e0
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0x218]
push eax
dec ecx
push 0x4f6580
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 0x4be891
mov eax, dword [esp + 0x428]
push str.bookmarks.dat
dec eax
push eax
push esi
call fcn.004ad390
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 0xc
Function at 0x4be8b0
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.004c01b0
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 1
jne 0x4be9cd
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.004c00f0
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.004ad390
lea eax, [esp + 0x300]
push eax
push 1
call fcn.004c04e0
add esp, 0x24
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004be750
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.004c0130
add esp, 8
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004b8150
mov ecx, eax
call fcn.004b87f0
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret
push 1
call fcn.004c0250
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
push edx
call fcn.004c0300
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.004ad390
add esp, 0x14
push esi
call fcn.004b8150
mov ecx, eax
call fcn.004be2f0
lea ecx, [esp + 0xdc]
push ecx
call fcn.004c0d40
mov ecx, eax
call fcn.004c1290
lea edx, [esp + 0xdc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4bea99
cmp dword [esp + 0x10], esi
jne 0x4bea99
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 0x4bea99
push esi
push 1
lea ecx, [esp + 0x2ec]
push 2
push ecx
call fcn.004c0d40
mov ecx, eax
call fcn.004ce9b0
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret
Function at 0x4bf5f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
mov dx, word [0x50fd10]
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.004b81a0
pop edi
pop esi
add esp, 0x410
ret
Function at 0x4c0d90
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 + 0x628]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
lea ecx, [ebx + 0x624]
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.004c02a0
mov eax, dword [ebp - 4]
add esp, 0x24
cmp eax, 2
jne 0x4c0ec4
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.004b8150
mov ecx, eax
call fcn.004be3b0
add ebx, 0x44
cmp ebx, esi
jne 0x4c0e28
xor edi, edi
jmp 0x4c0e55
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.004acae0
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 0x4c0ed4
lea eax, [ebp - 0x210]
test eax, eax
jne 0x4c0e75
xor esi, esi
jmp 0x4c0eb0
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.004acae0
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 0x4f76c8
push 0x31
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
jmp 0x4c0ed4
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 0x4c0f00
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 + 0x628]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
je 0x4c0f3f
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 + 0x624]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
je 0x4c0f67
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 0x4c1067
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp + 8], ebx
call fcn.004c02a0
mov eax, dword [ebp + 8]
add esp, 4
cmp eax, 2
jne 0x4c1045
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.004b8150
mov ecx, eax
call fcn.004be3b0
cmp esi, ebx
je 0x4c1021
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.004acae0
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 0x4c1067
or eax, 0xffffffff
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x57aca8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4c1067
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 0x4c1080
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x624]
mov ecx, dword [esi + 0x620]
cmp eax, ecx
jle 0x4c10b2
mov ecx, 0x64
mov edi, dword [esi + 0x620]
add edi, ecx
mov edx, edi
mov dword [esi + 0x620], edi
cmp eax, edx
jg 0x4c109e
mov edi, dword [esi + 0x620]
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 0x4c1184
dec edi
cmp edi, ebx
jl 0x4c1180
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 0x4c10ec
mov eax, dword [esp + 0x14]
mov edi, eax
jmp 0x4c1186
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x60c], edi
jne 0x4c119c
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0x620]
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 + 0x624]
cmp eax, 0x2710
jge 0x4c11f9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x60c]
push ecx
push eax
push 0xc80
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 0x624]
add esp, 0x10
cmp eax, ecx
je 0x4c1235
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 + 0x60c]
push eax
push 0x2710
push 0xc80
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0x2710
je 0x4c122b
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov dword [esi + 0x624], 0x2710
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4

Function at 0x4c1250
Capabilities:
Write file on windows

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

Disassembly:
push 0xffffffffffffffff
push 0x4e3558
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 + 0x62750]
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 + 0x604], 1
mov dword [esi + 0x608], 0
mov dword [esi + 0x634], 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.004c3420
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 0x4c6060
Capabilities:
Parse url

Disassembly:
sub esp, 0x654
push esi
mov esi, dword [esp + 0x65c]
test esi, esi
push edi
je 0x4c6159
mov dx, word [0x50fd10]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x44], dx
mov word [esp + 0x24c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24e]
mov word [esp + 0x454], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x456]
lea edx, [esp + 0x454]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [esp + 0xc], eax
mov eax, 0x104
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x250]
push 0
push esi
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], edx
call edi
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4c6159
mov ecx, dword [esp + 0x34]
push ecx
call edi
add esp, 4
test eax, eax
je 0x4c614b
mov edx, dword [esp + 0x34]
push 0x501274
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4c6159
pop edi
mov eax, 1
pop esi
add esp, 0x654
ret
pop edi
xor eax, eax
pop esi
add esp, 0x654
ret
Function at 0x4c9580
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 + 0x626d0], 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 0x4c9d30
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 0x4c9da8
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 0x4c9d8d
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 0x4c9dc5
mov eax, dword [esp + 0x238]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], eax
jmp 0x4c9e7c
cmp eax, 5
jne 0x4c9e34
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 0x4f6580
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.00433d60
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 0x4c9e59
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 0x4c9e7c
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
Function at 0x4cdce0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x618
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call fcn.004c01f0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
test eax, eax
jbe 0x4cddc7
mov dx, word [0x50fd10]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x20e]
mov word [esp + 0x20c], dx
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x418]
push 0x104
push eax
call fcn.004ad340
add esp, 8
lea ecx, [esp + 0x210]
lea edx, [esp + 8]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [esp + 0x624]
lea eax, [esp + 0x210]
lea ecx, [esp + 0x418]
push eax
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
push esi
call fcn.00427ab0
mov eax, dword [esp + 0x634]
add esp, 8
test eax, eax
je 0x4cddb9
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4cddb9
push esi
call fcn.00427cf0
add esp, 4
pop esi
mov eax, 1
pop edi
add esp, 0x618
ret
xor eax, eax
pop edi
add esp, 0x618
ret

Function at 0x4cdde0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push esi
mov esi, dword [esp + 0x420]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call edi
add esp, 4
test eax, eax
jbe 0x4cdea5
push esi
call edi
add esp, 4
cmp eax, 0x104
jae 0x4cdea5
mov ax, word [0x50fd10]
mov ecx, 0x81
mov word [esp + 8], ax
xor eax, eax
lea edi, [esp + 0xa]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x214]
push ecx
stosw word es:[edi], ax
call fcn.004ad340
add esp, 8
lea edx, [esp + 8]
push 0x104
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [esp + 0x41c]
lea eax, [esp + 8]
lea ecx, [esp + 0x210]
push eax
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
push esi
call fcn.00427ab0
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4cde97
push esi
call fcn.00427cf0
add esp, 4
pop edi
pop esi
add esp, 0x410
ret
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
pop edi
xor eax, eax
pop esi
add esp, 0x410
ret
Function at 0x4cdeb0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
push ebx
push esi
mov esi, dword [esp + 0x41c]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x104
ja 0x4cdff5
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
stosw word es:[edi], ax
push 0x4f6580
lea eax, [esp + 0x21c]
push 0x103
push eax
call ebx
push esi
lea ecx, [esp + 0x228]
push 0x104
push ecx
call fcn.004cdde0
add esp, 0x1c
test eax, eax
je 0x4cdff5
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4cdff5
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
call fcn.004ad340
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004db1d0
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.004ad340
add esp, 0x18
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4cdfd8
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [esi + eax*2]
lea eax, [esp + 0xc]
push edx
push 0x4f6580
push 0x103
push eax
call ebx
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.004c01d0
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x410
ret
push 0x104
push esi
call fcn.004c01d0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x410
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x410
ret
Function at 0x4ce010
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
lea eax, [esp + 4]
push edi
push eax
mov dword [esp + 0xc], 0
call fcn.004c02a0
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 4
test eax, eax
jne 0x4ce099
push 0
push 6
push 0x6b38f8
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4ce156
push 1
push 0x6b38f8
call fcn.004db1d0
mov eax, dword [esp + 0x220]
add esp, 8
test eax, eax
je 0x4ce189
mov ecx, dword [esp + 0x21c]
push 0x6b38f8
dec ecx
push 0x4f6580
push ecx
push eax
call esi
add esp, 0x10
mov eax, 0x6b38f8
pop edi
pop esi
add esp, 0x20c
ret
cmp eax, 3
jne 0x4ce148
push 1
push 0x104
push 0x6b38f8
call fcn.004cdce0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
add esp, 0xc
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x6b38f8
push 0x4f6580
push 0x103
push edx
stosw word es:[edi], ax
call esi
push 0x6b38f8
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
test eax, eax
jne 0x4ce156
push eax
push 6
push 0x6b38f8
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4ce156
push 1
push 0x6b38f8
call fcn.004db1d0
mov eax, dword [esp + 0x220]
add esp, 8
test eax, eax
je 0x4ce189
mov ecx, dword [esp + 0x21c]
push 0x6b38f8
dec ecx
push 0x4f6580
push ecx
push eax
call esi
add esp, 0x10
mov eax, 0x6b38f8
pop edi
pop esi
add esp, 0x20c
ret
mov ecx, 0x82
xor eax, eax
mov edi, 0x6b38f8
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
test eax, eax
je 0x4ce17a
mov edx, dword [esp + 0x21c]
push 0x6b38f8
dec edx
push 0x4f6580
push edx
push eax
call esi
add esp, 0x10
push 1
push 0x6b38f8
call fcn.004db1d0
add esp, 8
pop edi
mov eax, 0x6b38f8
pop esi
add esp, 0x20c
ret