joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8800
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.004af1c0
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 2
jne 0x4a899b
push ebx
call fcn.004afc20
mov ecx, eax
call fcn.004be8b0
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.004ae5b0
lea edx, [esp + 0x14]
mov ebp, 1
push edx
push ebp
call fcn.004af3c0
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.004ae610
cmp ebx, ebp
pop ebx
jne 0x4a897d
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, ebp
je 0x4a88d5
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.004af470
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004af3e0
add esp, 0x10
lea ecx, [esp + 0x218]
push ecx
call edi
cmp eax, ebp
je 0x4a8902
mov dword [esi + 0x20], ebp
call fcn.004afc20
push ebp
mov ecx, esi
mov dword [eax + 0x14], ebp
call fcn.004ad220
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
lea edx, [esp + 0x218]
push edx
call fcn.004afc20
mov ecx, eax
call fcn.004be570
test eax, eax
je 0x4a8924
call fcn.004afc20
cmp dword [eax + 0x14], ebp
je 0x4a8941
call fcn.004afc20
mov dword [eax + 0x14], ebp
lea eax, [esp + 0x218]
push ebp
push eax
call fcn.004afc20
mov ecx, eax
call fcn.004be530
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.004af450
add esp, 8
cmp eax, ebp
jne 0x4a8968
push ebp
mov ecx, esi
call fcn.004ad220
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
push 0
mov ecx, esi
call fcn.004ad220
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
call fcn.004afc20
cmp dword [eax + 0x14], ebp
jne 0x4a899b
lea edx, [esp + 0x218]
push edx
call fcn.004afc20
mov ecx, eax
call fcn.004b6c50
pop edi
pop esi
pop ebp
add esp, 0x414
ret 4
Function at 0x4ad330
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 0x4ad3e3
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.004ae5b0
lea ecx, [esp + 0xc]
push ecx
push 0
call fcn.004af550
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.004ae610
pop edi
test ebx, ebx
pop ebx
jne 0x4ad3d9
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4ad3d9
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 0x4ad4b0
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 0x4ad547
push eax
call fcn.004af170
add esp, 4
call fcn.004afc20
mov ecx, eax
call fcn.004be8f0
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.0049c3f0
add esp, 0xc
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004afc20
mov ecx, eax
call fcn.004be530
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4ad66f
call fcn.004afc20
mov ecx, eax
call fcn.004bea10
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 2
jne 0x4ad588
call fcn.004afc20
mov ecx, eax
call fcn.004be8f0
push 0
call fcn.004af170
add esp, 4
push 2
push 0
push 0
call fcn.004bc7e0
add esp, 8
push eax
call fcn.004afc20
mov ecx, eax
call fcn.004be530
pop edi
pop esi
add esp, 0x410
ret 4
cmp eax, 3
jne 0x4ad59d
call fcn.004afc20
mov ecx, eax
call fcn.004be8f0
push 3
jmp 0x4ad55a
cmp eax, 4
jne 0x4ad66f
mov al, byte [esi + 4]
test al, al
je 0x4ad66f
push ebx
push 2
call fcn.004af170
add esp, 4
call fcn.004afc20
mov ecx, eax
call fcn.004be8b0
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.004ae5b0
lea ecx, [esp + 0x214]
push ecx
push 1
call fcn.004af3e0
add esp, 8
lea ebx, [esi + 0x28]
mov ecx, esi
push ebx
call fcn.004ad680
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.004ad6d0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 1
pop ebx
cmp eax, edi
jne 0x4ad65d
lea ecx, [esp + 8]
push edi
push ecx
jmp 0x4ad571
mov dword [esi + 0x20], edi
call fcn.004afc20
mov ecx, esi
mov dword [eax + 0x14], edi
call fcn.004a7100
pop edi
pop esi
add esp, 0x410
ret 4
Function at 0x4ad6d0
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 0x4ad7ca
mov ebx, dword [esp + 0x42c]
test ebx, ebx
je 0x4ad7b3
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 2
jb 0x4ad7b3
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.0049c3f0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4ad7a3
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.004ae610
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0x218]
push eax
dec ecx
push 0x4e33c0
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 0x4ad7c1
mov eax, dword [esp + 0x428]
push str.bookmarks.dat
dec eax
push eax
push esi
call fcn.0049c3f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 0xc
Function at 0x4ad7e0
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.004af0d0
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 1
jne 0x4ad8fd
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.004af010
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.0049c3f0
lea eax, [esp + 0x300]
push eax
push 1
call fcn.004af3c0
add esp, 0x24
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004ad680
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.004af050
add esp, 8
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004a7080
mov ecx, eax
call fcn.004a7720
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret
push 1
call fcn.004af170
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
push edx
call fcn.004af220
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.0049c3f0
add esp, 0x14
push esi
call fcn.004a7080
mov ecx, eax
call fcn.004ad220
lea ecx, [esp + 0xdc]
push ecx
call fcn.004afc20
mov ecx, eax
call fcn.004b0170
lea edx, [esp + 0xdc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4ad9c9
cmp dword [esp + 0x10], esi
jne 0x4ad9c9
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 0x4ad9c9
push esi
push 1
lea ecx, [esp + 0x2ec]
push 2
push ecx
call fcn.004afc20
mov ecx, eax
call fcn.004bd180
pop edi
pop esi
pop ebx
add esp, 0x4e0
ret
Function at 0x4ae520
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
mov dx, word [0x4f5820]
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.004a70d0
pop edi
pop esi
add esp, 0x410
ret
Function at 0x4afc70
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.004af1c0
mov eax, dword [ebp - 4]
add esp, 0x24
cmp eax, 2
jne 0x4afda4
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.004a7080
mov ecx, eax
call fcn.004ad2e0
add ebx, 0x44
cmp ebx, esi
jne 0x4afd08
xor edi, edi
jmp 0x4afd35
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.0049bb40
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 0x4afdb4
lea eax, [ebp - 0x210]
test eax, eax
jne 0x4afd55
xor esi, esi
jmp 0x4afd90
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.0049bb40
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 0x4e4204
push 0x31
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
jmp 0x4afdb4
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 0x4afde0
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 0x4afe1f
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 0x4afe47
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 0x4aff47
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp + 8], ebx
call fcn.004af1c0
mov eax, dword [ebp + 8]
add esp, 4
cmp eax, 2
jne 0x4aff25
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.004a7080
mov ecx, eax
call fcn.004ad2e0
cmp esi, ebx
je 0x4aff01
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.0049bb40
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 0x4aff47
or eax, 0xffffffff
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x5605a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4aff47
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 0x4aff60
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 0x4aff92
mov ecx, 0x64
mov edi, dword [esi + 0x620]
add edi, ecx
mov edx, edi
mov dword [esi + 0x620], edi
cmp eax, edx
jg 0x4aff7e
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 0x4b0064
dec edi
cmp edi, ebx
jl 0x4b0060
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 0x4affcc
mov eax, dword [esp + 0x14]
mov edi, eax
jmp 0x4b0066
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x60c], edi
jne 0x4b007c
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 0x4b00d9
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 0x4b0115
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 0x4b010b
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 0x4b0130
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 0x4b0162
or eax, 0xffffffff
ret 4
Function at 0x4b2480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d1ed8
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.004b22e0
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 0x4b8110
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 0x4b89e0
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 0x4b8a58
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 0x4b8a3d
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 0x4b8a75
mov eax, dword [esp + 0x238]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], eax
jmp 0x4b8b2c
cmp eax, 5
jne 0x4b8ae4
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 0x4e33c0
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.0042fca0
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 0x4b8b09
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 0x4b8b2c
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 0x4bc4e0
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.004af110
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
test eax, eax
jbe 0x4bc5c7
mov dx, word [0x4f5820]
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.0049c3a0
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.00425340
mov eax, dword [esp + 0x634]
add esp, 8
test eax, eax
je 0x4bc5b9
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4bc5b9
push esi
call fcn.00425580
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 0x4bc5e0
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 0x4bc689
mov ax, word [0x4f5820]
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.0049c3a0
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.00425340
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop edi
jne 0x4bc67c
push esi
call fcn.00425580
add esp, 4
mov eax, 1
pop esi
add esp, 0x410
ret
xor eax, eax
pop esi
add esp, 0x410
ret