joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be740
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 0x4be7f3
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.004bf9c0
lea ecx, [esp + 0xc]
push ecx
push 0
call fcn.004c09a0
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.004bfa20
pop edi
test ebx, ebx
pop ebx
jne 0x4be7e9
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4be7e9
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 0x4be8c0
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 0x4be957
push eax
call fcn.004c0580
add esp, 4
call fcn.004c1070
mov ecx, eax
call fcn.004d0420
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.004ad6f0
add esp, 0xc
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004c1070
mov ecx, eax
call fcn.004d0060
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4bea7f
call fcn.004c1070
mov ecx, eax
call fcn.004d0540
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 2
jne 0x4be998
call fcn.004c1070
mov ecx, eax
call fcn.004d0420
push 0
call fcn.004c0580
add esp, 4
push 2
push 0
push 0
call fcn.004ce300
add esp, 8
push eax
call fcn.004c1070
mov ecx, eax
call fcn.004d0060
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 3
jne 0x4be9ad
call fcn.004c1070
mov ecx, eax
call fcn.004d0420
push 3
jmp 0x4be96a
cmp eax, 4
jne 0x4bea7f
mov al, byte [esi + 4]
test al, al
je 0x4bea7f
push ebx
push 2
call fcn.004c0580
add esp, 4
call fcn.004c1070
mov ecx, eax
call fcn.004d03e0
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.004bf9c0
lea ecx, [esp + 0x214]
push ecx
push 1
call fcn.004c0830
add esp, 8
lea ebx, [esi + 0x28]
mov ecx, esi
push ebx
call fcn.004bea90
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.004beae0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 1
pop ebx
cmp eax, edi
jne 0x4bea6d
lea ecx, [esp + 8]
push edi
push ecx
jmp 0x4be981
mov dword [esi + 0x20], edi
call fcn.004c1070
mov ecx, esi
mov dword [eax + 0x14], edi
call fcn.004b8510
pop edi
pop esi
add esp, 0x410
ret 4
Function at 0x4beae0
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 0x4bebda
mov ebx, dword [esp + 0x42c]
test ebx, ebx
je 0x4bebc3
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 2
jb 0x4bebc3
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.004ad6f0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4bebb3
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.004bfa20
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0x218]
push eax
dec ecx
push 0x4f6574
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 0x4bebd1
mov eax, dword [esp + 0x428]
push str.bookmarks.dat
dec eax
push eax
push esi
call fcn.004ad6f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 0xc
Function at 0x4bebf0
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.004c04e0
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 1
jne 0x4bed0d
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.004c0420
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.004ad6f0
lea eax, [esp + 0x300]
push eax
push 1
call fcn.004c0810
add esp, 0x24
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004bea90
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.004c0460
add esp, 8
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004b8490
mov ecx, eax
call fcn.004b8b30
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret
push 1
call fcn.004c0580
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
push edx
call fcn.004c0630
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.004ad6f0
add esp, 0x14
push esi
call fcn.004b8490
mov ecx, eax
call fcn.004be630
lea ecx, [esp + 0xdc]
push ecx
call fcn.004c1070
mov ecx, eax
call fcn.004c15c0
lea edx, [esp + 0xdc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4bedd9
cmp dword [esp + 0x10], esi
jne 0x4bedd9
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 0x4bedd9
push esi
push 1
lea ecx, [esp + 0x2ec]
push 2
push ecx
call fcn.004c1070
mov ecx, eax
call fcn.004ceca0
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret
Function at 0x4bf930
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
mov dx, word [0x50fce0]
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.004b84e0
pop edi
pop esi
add esp, 0x410
ret
Function at 0x4c10c0
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.004c05d0
mov eax, dword [ebp - 4]
add esp, 0x24
cmp eax, 2
jne 0x4c11f4
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.004b8490
mov ecx, eax
call fcn.004be6f0
add ebx, 0x44
cmp ebx, esi
jne 0x4c1158
xor edi, edi
jmp 0x4c1185
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.004ace40
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 0x4c1204
lea eax, [ebp - 0x210]
test eax, eax
jne 0x4c11a5
xor esi, esi
jmp 0x4c11e0
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.004ace40
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 0x4f7528
push 0x31
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
jmp 0x4c1204
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 0x4c1230
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 0x4c126f
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 0x4c1297
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 0x4c1397
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp + 8], ebx
call fcn.004c05d0
mov eax, dword [ebp + 8]
add esp, 4
cmp eax, 2
jne 0x4c1375
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.004b8490
mov ecx, eax
call fcn.004be6f0
cmp esi, ebx
je 0x4c1351
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.004ace40
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 0x4c1397
or eax, 0xffffffff
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x57ac78
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4c1397
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 0x4c13b0
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 0x4c13e2
mov ecx, 0x64
mov edi, dword [esi + 0x620]
add edi, ecx
mov edx, edi
mov dword [esi + 0x620], edi
cmp eax, edx
jg 0x4c13ce
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 0x4c14b4
dec edi
cmp edi, ebx
jl 0x4c14b0
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 0x4c141c
mov eax, dword [esp + 0x14]
mov edi, eax
jmp 0x4c14b6
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x60c], edi
jne 0x4c14cc
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 0x4c1529
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 0x4c1565
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 0x4c155b
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 0x4c1580
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 0x4c15b2
or eax, 0xffffffff
ret 4
Function at 0x4c38f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e38e8
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.004c3750
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 0x4c6390
Capabilities:
Parse url

Disassembly:
sub esp, 0x654
push esi
mov esi, dword [esp + 0x65c]
test esi, esi
push edi
je 0x4c6489
mov dx, word [0x50fce0]
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 0x4c6489
mov ecx, dword [esp + 0x34]
push ecx
call edi
add esp, 4
test eax, eax
je 0x4c647b
mov edx, dword [esp + 0x34]
push 0x501464
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4c6489
pop edi
mov eax, 1
pop esi
add esp, 0x654
ret
pop edi
xor eax, eax
pop esi
add esp, 0x654
ret
Function at 0x4c98b0
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 0x4ca060
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 0x4ca0d8
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 0x4ca0bd
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 0x4ca0f5
mov eax, dword [esp + 0x238]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], eax
jmp 0x4ca1ac
cmp eax, 5
jne 0x4ca164
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 0x4f6574
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.00434a80
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 0x4ca189
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 0x4ca1ac
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 0x4cdfd0
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.004c0520
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
test eax, eax
jbe 0x4ce0b7
mov dx, word [0x50fce0]
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.004ad6a0
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.004287e0
mov eax, dword [esp + 0x634]
add esp, 8
test eax, eax
je 0x4ce0a9
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4ce0a9
push esi
call fcn.00428a20
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 0x4ce0d0
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 0x4ce195
push esi
call edi
add esp, 4
cmp eax, 0x104
jae 0x4ce195
mov ax, word [0x50fce0]
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.004ad6a0
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.004287e0
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4ce187
push esi
call fcn.00428a20
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 0x4ce1a0
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 0x4ce2e5
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 0x4f6574
lea eax, [esp + 0x21c]
push 0x103
push eax
call ebx
push esi
lea ecx, [esp + 0x228]
push 0x104
push ecx
call fcn.004ce0d0
add esp, 0x1c
test eax, eax
je 0x4ce2e5
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4ce2e5
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.004ad6a0
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004db580
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.004ad6a0
add esp, 0x18
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4ce2c8
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 0x4f6574
push 0x103
push eax
call ebx
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.004c0500
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x410
ret
push 0x104
push esi
call fcn.004c0500
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