Function at 0x10025184
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x290
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
push esi
push edi
mov esi, str.background.html
mov dword [ebp - 0xc], esi
lea edi, [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], str.icon.png
mov dword [ebp + 0x10], ebx
lea edi, [ebp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], str.manifest.json
mov dword [ebp + 0x28], ebx
lea edi, [ebp + 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp + 0x34], ebx
lea edi, [ebp + 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.10025716
test eax, eax
je 0x10025507
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10030218
lea eax, [ebp - 0x21c]
push eax
call edi
push esi
lea eax, [ebp - 0x21c]
push eax
call edi
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x60], eax
je 0x10025507
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 0x824]
push esi
call fcn.1001761b
pop ecx
mov ecx, eax
cmp ecx, ebx
mov dword [ebp + 0x5c], ecx
je 0x100254fe
cmp esi, ebx
je 0x10025275
mov byte [eax], bl
inc eax
dec esi
jne 0x1002526f
push ebx
lea eax, [ebp + 0x4c]
push eax
push edi
push ecx
push dword [ebp + 0x60]
mov dword [ebp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100254f5
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + 1]
push esi
mov dword [ebp + 0x6c], eax
call fcn.1001761b
cmp eax, ebx
pop ecx
mov dword [ebp + 0x58], eax
je 0x100254f5
push ebx
push ebx
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0x7c]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov esi, 0x10031de8
push esi
push dword [ebp + 0x5c]
call edi
cmp eax, ebx
mov dword [ebp + 0x7c], eax
je 0x100254ec
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add dword [ebp + 0x7c], eax
push 0x1002e810
push dword [ebp + 0x7c]
call edi
cmp eax, ebx
mov dword [ebp + 0x70], eax
je 0x100254ec
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
sub ecx, dword [ebp + 0x7c]
lea edi, [ecx + eax + 1]
push edi
mov dword [ebp + 0x6c], edi
call fcn.1001761b
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp + 0x68], ebx
je 0x100254ec
test edi, edi
mov ecx, edi
je 0x1002532f
mov byte [eax], 0
inc eax
dec ecx
jne 0x10025328
mov eax, dword [ebp + 0x70]
sub eax, dword [ebp + 0x7c]
inc eax
push eax
push dword [ebp + 0x7c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
call esi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push 0
pop eax
je 0x1002538e
mov cl, byte [ebx + eax*2]
mov dl, byte [ebx + eax*2 + 1]
cmp cl, 0x41
setl bl
dec bl
and bl, 7
add bl, 0x30
sub cl, bl
shl cl, 4
cmp dl, 0x41
setl bl
dec bl
and bl, 7
add bl, 0x30
sub dl, bl
and dl, 0xf
or cl, dl
mov edx, dword [ebp + 0x68]
xor cl, al
mov byte [eax + edx], cl
inc eax
cmp eax, edi
mov ebx, edx
jb 0x10025350
push dword [ebp + 0x58]
mov byte [edi + ebx], 0
push ebx
call fcn.100250fa
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov bl, al
neg bl
push 0x1002db80
push dword [ebp + 0x68]
sbb bl, bl
inc bl
call edi
test bl, bl
je 0x100254e3
test eax, eax
je 0x100254e3
push 0x100305a8
add eax, 3
push eax
call edi
push dword [ebp + 0x6c]
mov dword [ebp + 0x54], eax
call fcn.1001761b
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp + 0x64], ebx
je 0x100254e3
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1002e9a4
push ebx
call edi
push dword [ebp + 0x58]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
call ebx
push dword [ebp + 0x54]
push dword [ebp + 0x64]
call ebx
push dword [ebp + 0x64]
call esi
push dword [ebp + 0x70]
call esi
inc eax
push eax
call fcn.1001761b
test eax, eax
pop ecx
mov dword [ebp + 0x6c], eax
je 0x100254da
push dword [ebp + 0x70]
push eax
call edi
push dword [ebp + 0x64]
call esi
xor edi, edi
cmp eax, edi
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x70], edi
jbe 0x10025495
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x64]
lea edx, [ecx + eax]
mov cl, byte [edx]
xor cl, 0x10
sar cl, 4
and cl, 0xf
cmp cl, 9
movsx ecx, cl
jle 0x1002545e
add ecx, 0x37
jmp 0x10025461
add ecx, 0x30
mov eax, dword [ebp + 0x70]
mov edi, dword [ebp + 0x7c]
add eax, eax
mov byte [eax + edi], cl
mov cl, byte [edx]
xor cl, 0xf8
and cl, 0xf
cmp cl, 9
movsx ecx, cl
jle 0x10025481
add ecx, 0x37
jmp 0x10025484
add ecx, 0x30
inc dword [ebp + 0x70]
mov byte [eax + edi + 1], cl
mov eax, dword [ebp + 0x54]
cmp dword [ebp + 0x70], eax
jb 0x1002543d
xor edi, edi
mov ecx, dword [ebp + 0x7c]
push dword [ebp + 0x6c]
mov byte [ecx + eax*2], 0
push ecx
call ebx
push edi
push edi
push edi
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x5c]
mov dword [ebp + 0x50], edi
call esi
push eax
push dword [ebp + 0x5c]
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x6c]
call fcn.1000e77a
pop ecx
push dword [ebp + 0x64]
call fcn.1000e77a
pop ecx
push dword [ebp + 0x68]
call fcn.1000e77a
pop ecx
push dword [ebp + 0x58]
call fcn.1000e77a
pop ecx
push dword [ebp + 0x5c]
call fcn.1000e77a
pop ecx
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4