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

Disassembly:
sub esp, 0x414
push ebp
push esi
push edi
lea eax, [esp + 0xc]
xor edi, edi
mov esi, ecx
push eax
mov dword [esp + 0x10], edi
call fcn.004a9d50
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 2
jne 0x4a353b
push ebx
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9b80
mov word [esp + 0x14], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x103
push ecx
mov ecx, esi
stosw word es:[edi], ax
call fcn.004a9140
lea edx, [esp + 0x14]
mov ebp, 1
push edx
push ebp
call fcn.004a9f70
mov ebx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x226]
mov word [esp + 0x224], 0
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x21c]
push 0x104
push eax
mov ecx, esi
call fcn.004a91a0
cmp ebx, ebp
pop ebx
jne 0x4a351d
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, ebp
je 0x4a3475
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.004aa020
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004a9f90
add esp, 0x10
lea ecx, [esp + 0x218]
push ecx
call edi
cmp eax, ebp
je 0x4a34a2
mov dword [esi + 0x20], ebp
call fcn.004aa7d0
push ebp
mov ecx, esi
mov dword [eax + 0x14], ebp
call fcn.004a7dc0
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
lea edx, [esp + 0x218]
push edx
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9840
test eax, eax
je 0x4a34c4
call fcn.004aa7d0
cmp dword [eax + 0x14], ebp
je 0x4a34e1
call fcn.004aa7d0
mov dword [eax + 0x14], ebp
lea eax, [esp + 0x218]
push ebp
push eax
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9800
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.004aa000
add esp, 8
cmp eax, ebp
jne 0x4a3508
push ebp
mov ecx, esi
call fcn.004a7dc0
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
push 0
mov ecx, esi
call fcn.004a7dc0
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
call fcn.004aa7d0
cmp dword [eax + 0x14], ebp
jne 0x4a353b
lea edx, [esp + 0x218]
push edx
call fcn.004aa7d0
mov ecx, eax
call fcn.004b1800
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
Function at 0x4a7ed0
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 0x4a7f83
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.004a9140
lea ecx, [esp + 0xc]
push ecx
push 0
call fcn.004aa100
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.004a91a0
pop edi
test ebx, ebx
pop ebx
jne 0x4a7f79
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4a7f79
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 0x4a8040
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 0x4a80d7
push eax
call fcn.004a9d00
add esp, 4
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9bc0
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.00496500
add esp, 0xc
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9800
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4a81ff
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9ce0
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 2
jne 0x4a8118
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9bc0
push 0
call fcn.004a9d00
add esp, 4
push 2
push 0
push 0
call fcn.004b7b80
add esp, 8
push eax
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9800
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 3
jne 0x4a812d
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9bc0
push 3
jmp 0x4a80ea
cmp eax, 4
jne 0x4a81ff
mov al, byte [esi + 4]
test al, al
je 0x4a81ff
push ebx
push 2
call fcn.004a9d00
add esp, 4
call fcn.004aa7d0
mov ecx, eax
call fcn.004b9b80
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.004a9140
lea ecx, [esp + 0x214]
push ecx
push 1
call fcn.004a9f90
add esp, 8
lea ebx, [esi + 0x28]
mov ecx, esi
push ebx
call fcn.004a8210
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.004a8260
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 1
pop ebx
cmp eax, edi
jne 0x4a81ed
lea ecx, [esp + 8]
push edi
push ecx
jmp 0x4a8101
mov dword [esi + 0x20], edi
call fcn.004aa7d0
mov ecx, esi
mov dword [eax + 0x14], edi
call fcn.004a1c90
pop edi
pop esi
add esp, 0x410
ret 4
Function at 0x4a8260
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 0x4a835a
mov ebx, dword [esp + 0x42c]
test ebx, ebx
je 0x4a8343
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 2
jb 0x4a8343
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.00496500
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4a8333
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.004a91a0
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0x218]
push eax
dec ecx
push 0x4de3ac
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 0x4a8351
mov eax, dword [esp + 0x428]
push str.bookmarks.dat
dec eax
push eax
push esi
call fcn.00496500
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 0xc
Function at 0x4a8370
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.004a9c60
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 1
jne 0x4a848d
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.004a9ba0
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.00496500
lea eax, [esp + 0x300]
push eax
push 1
call fcn.004a9f70
add esp, 0x24
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004a8210
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.004a9be0
add esp, 8
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004a1c10
mov ecx, eax
call fcn.004a22b0
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret
push 1
call fcn.004a9d00
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
push edx
call fcn.004a9dd0
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.00496500
add esp, 0x14
push esi
call fcn.004a1c10
mov ecx, eax
call fcn.004a7dc0
lea ecx, [esp + 0xdc]
push ecx
call fcn.004aa7d0
mov ecx, eax
call fcn.004aad20
lea edx, [esp + 0xdc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4a8559
cmp dword [esp + 0x10], esi
jne 0x4a8559
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 0x4a8559
push esi
push 1
lea ecx, [esp + 0x2ec]
push 2
push ecx
call fcn.004aa7d0
mov ecx, eax
call fcn.004b8520
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret
Function at 0x4a90b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
mov dx, word [0x4f04e0]
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.004a1c60
pop edi
pop esi
add esp, 0x410
ret
Function at 0x4aa820
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.004a9d50
mov eax, dword [ebp - 4]
add esp, 0x24
cmp eax, 2
jne 0x4aa954
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.004a1c10
mov ecx, eax
call fcn.004a7e80
add ebx, 0x44
cmp ebx, esi
jne 0x4aa8b8
xor edi, edi
jmp 0x4aa8e5
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.00495c50
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 0x4aa964
lea eax, [ebp - 0x210]
test eax, eax
jne 0x4aa905
xor esi, esi
jmp 0x4aa940
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.00495c50
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 0x4df378
push 0x31
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
jmp 0x4aa964
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 0x4aa990
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 0x4aa9cf
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 0x4aa9f7
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 0x4aaaf7
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp + 8], ebx
call fcn.004a9d50
mov eax, dword [ebp + 8]
add esp, 4
cmp eax, 2
jne 0x4aaad5
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.004a1c10
mov ecx, eax
call fcn.004a7e80
cmp esi, ebx
je 0x4aaab1
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.00495c50
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 0x4aaaf7
or eax, 0xffffffff
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x55b25c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4aaaf7
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 0x4aab10
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 0x4aab42
mov ecx, 0x64
mov edi, dword [esi + 0x620]
add edi, ecx
mov edx, edi
mov dword [esi + 0x620], edi
cmp eax, edx
jg 0x4aab2e
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 0x4aac14
dec edi
cmp edi, ebx
jl 0x4aac10
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 0x4aab7c
mov eax, dword [esp + 0x14]
mov edi, eax
jmp 0x4aac16
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x60c], edi
jne 0x4aac2c
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 0x4aac89
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 0x4aacc5
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 0x4aacbb
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 0x4aace0
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 0x4aad12
or eax, 0xffffffff
ret 4
Function at 0x4ad030
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4cd078
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.004ace90
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 0x4b2cc0
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 0x4b3590
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 0x4b3608
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 0x4b35ed
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 0x4b3625
mov eax, dword [esp + 0x238]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], eax
jmp 0x4b36dc
cmp eax, 5
jne 0x4b3694
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 0x4de3ac
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.0042aff0
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 0x4b36b9
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 0x4b36dc
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 0x4b7880
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.004a9ca0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
test eax, eax
jbe 0x4b7967
mov dx, word [0x4f04e0]
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.004964b0
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.004228d0
mov eax, dword [esp + 0x634]
add esp, 8
test eax, eax
je 0x4b7959
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4b7959
push esi
call fcn.00422b10
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 0x4b7980
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push esi
mov esi, dword [esp + 0x420]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x4b7a29
mov ax, word [0x4f04e0]
push edi
mov word [esp + 8], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
stosw word es:[edi], ax
call fcn.004964b0
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.004228d0
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop edi
jne 0x4b7a1c
push esi
call fcn.00422b10
add esp, 4
mov eax, 1
pop esi
add esp, 0x410
ret
xor eax, eax
pop esi
add esp, 0x410
ret