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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfc5d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x468
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x54], ecx
push 0x448
push 8
mov byte [ebp - 0x29], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x48ee94
push 0x208
lea eax, [edi + 0x23a]
mov dword [edi + 0x10], 0
xorps xmm0, xmm0
mov dword [edi + 0x14], 0
push 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x30], 0
push eax
movups xmmword [edi], xmm0
call fcn.004abb60
xorps xmm0, xmm0
add esp, 0xc
movq qword [edi + 0x28], xmm0
jmp 0x48ee99
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
jne 0x48eeac
lea esi, [edi + 0xe]
jmp 0x48f5de
test esi, esi
jne 0x48ef6f
push edi
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, eax
cmp esi, 0x720
je 0x48eecd
test esi, esi
jne 0x48f5d6
lea ecx, [edi + 0x23a]
mov edx, 0x104
push ecx
push dword [ebx + 8]
push ecx
call fcn.0048c510
lea esi, [edi + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esi]
mov edx, 0x3886594b
mov eax, dword [esi + 4]
add ecx, 0x2ac18000
mov edi, 0x346dc5d6
adc eax, 0xfe624e21
mov dword [ebp - 0x40], eax
mov eax, ecx
mul edx
mov esi, edx
mov dword [ebp - 0x38], eax
mov eax, ecx
mov ecx, 0x3886594b
mul edi
mov dword [ebp - 0x3c], edx
mov edi, eax
mov eax, dword [ebp - 0x40]
mul ecx
mov dword [ebp - 0x4c], edx
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, 0x346dc5d6
mul edx
add ecx, esi
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x4c]
adc edx, 0
mov dword [ebp - 0x40], eax
add edi, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], edi
mov edi, dword [ebp - 0x44]
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x40]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0x34]
adc edx, eax
shrd ecx, edx, 0xb
shr edx, 0xb
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
jmp 0x48ef75
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x10]
push eax
push edi
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
mov esi, eax
test esi, esi
jne 0x48f5d6
mov eax, dword [edi + 0x10]
lea esi, [edi + 0x32]
push ecx
push 0x514ca8
push ecx
mov edx, 0x104
mov dword [ebp - 0x34], eax
mov ecx, esi
call fcn.0048c510
test eax, eax
js 0x48f5d1
push 0x4eeed0
mov ecx, esi
call fcn.0048c4b0
test eax, eax
js 0x48f5d1
push dword [ebp - 0x34]
mov ecx, esi
call fcn.0048c4b0
test eax, eax
js 0x48f5d1
push 0x4eeed8
mov ecx, esi
call fcn.0048c4b0
test eax, eax
js 0x48f5d1
cmp dword [ebp - 0x30], 0
push 0
push 0x80
je 0x48f2ac
push 3
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x20], eax
cmp eax, 0xffffffff
jne 0x48f026
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48f5d6
push 0
lea ecx, [ebp - 0x34]
push ecx
push 4
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48f057
call esi
mov esi, eax
test esi, esi
jne 0x48f5d6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x48f071
cmp dword [ebp - 0x34], 4
jne 0x48f16b
xor byte [ebp - 0x28], 0x67
xor byte [ebp - 0x27], 0x67
xor byte [ebp - 0x26], 0x67
xor byte [ebp - 0x25], 0x67
cmp dword [ebp - 0x28], 1
je 0x48f081
mov esi, 0x57
jmp 0x48f5d6
push 0
lea eax, [ebp - 0x34]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48f0a8
call esi
mov esi, eax
test esi, esi
jne 0x48f5d6
jmp 0x48f0c5
cmp dword [ebp - 0x34], 0x10
jne 0x48f16b
movups xmm0, xmmword [ebp - 0x24]
movaps xmm1, xmmword [str.gggggggggggggggg]
pxor xmm1, xmm0
movups xmmword [ebp - 0x24], xmm1
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x24]
mov esi, 0xc
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x48f077
add edx, 4
add ecx, 4
sub esi, 4
jae 0x48f0d0
push 0
lea eax, [ebp - 0x34]
push eax
push 8
lea esi, [edi + 0x28]
push esi
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48f10c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x48f5d6
jmp 0x48f131
cmp dword [ebp - 0x34], 8
jne 0x48f16b
xor byte [esi], 0x67
xor byte [esi + 1], 0x67
xor byte [esi + 2], 0x67
xor byte [esi + 3], 0x67
xor byte [esi + 4], 0x67
xor byte [esi + 5], 0x67
xor byte [esi + 6], 0x67
xor byte [esi + 7], 0x67
push 0
lea eax, [ebp - 0x34]
push eax
push 0x208
lea esi, [edi + 0x23a]
push esi
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48f162
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x48f5d6
jmp 0x48f1de
cmp dword [ebp - 0x34], 0x208
je 0x48f175
mov esi, 0x1e
jmp 0x48f5d6
lea eax, [esi + 0x207]
xor ecx, ecx
cmp esi, eax
jbe 0x48f1d1
movaps xmm2, xmmword [str.gggggggggggggggg]
lea edx, [ecx + 8]
lea eax, [esi + 0x20]
mov ecx, 0x200
lea eax, [eax + 0x40]
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x60]
pxor xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
pxor xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax - 0x40], xmm1
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
sub edx, 1
jne 0x48f193
xor byte [ecx + esi], 0x67
inc ecx
cmp ecx, 0x208
jb 0x48f1d1
push 0
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x48f019
test ecx, ecx
je 0x48f077
sub ecx, 0x224
mov dword [ebp - 0x30], ecx
je 0x48f077
mov eax, 0x3e0f83e1
mul ecx
shr edx, 8
imul eax, edx, 0x420
sub ecx, eax
jne 0x48f077
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [edi + 0x20]
lea edx, [ebp - 0x478]
push 0x420
call fcn.0048c630
mov esi, eax
add esp, 4
test esi, esi
jne 0x48f5d6
test byte [ebp - 0x474], 1
je 0x48f077
push 1
lea edx, [ebp - 0x478]
mov ecx, edi
call fcn.0048e680
mov esi, eax
add esp, 4
cmp esi, 0x15e
jne 0x48f282
mov cl, 1
xor esi, esi
mov byte [ebp - 0x29], cl
jmp 0x48f285
mov cl, byte [ebp - 0x29]
sub dword [ebp - 0x30], 0x420
jne 0x48f230
test esi, esi
jne 0x48f5d6
mov eax, dword [ebp - 0x54]
mov edx, 0x15e
mov dword [eax], edi
xor eax, eax
test cl, cl
cmovne eax, edx
jmp 0x48f5e9
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x20], eax
cmp eax, 0xffffffff
je 0x48f019
push 4
mov dword [ebp - 0x28], 1
xor esi, esi
mov eax, dword [edi + 0x20]
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x4c], ecx
test ecx, ecx
je 0x48f4d4
movzx eax, byte [ebp - 0x28]
xor al, 0x67
mov byte [ecx], al
movzx eax, byte [ebp - 0x27]
xor al, 0x67
mov byte [ecx + 1], al
movzx eax, byte [ebp - 0x26]
xor al, 0x67
mov byte [ecx + 2], al
movzx eax, byte [ebp - 0x25]
xor al, 0x67
push esi
mov byte [ecx + 3], al
lea eax, [ebp - 0x3c]
push eax
push 4
push ecx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esi + 0x1d]
test eax, eax
jne 0x48f33b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48f342
cmp dword [ebp - 0x3c], 4
cmovne esi, ecx
push dword [ebp - 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x48f5d6
mov eax, dword [edi + 0x20]
push 0x10
push esi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebp - 0x30], edx
test edx, edx
je 0x48f4d4
lea eax, [edi + 0xf]
lea ecx, [edx + 0xf]
cmp edx, eax
ja 0x48f3ac
cmp ecx, edi
jb 0x48f3ac
mov dword [ebp - 0x34], edi
mov ecx, edx
sub edi, edx
lea edx, [esi + 0x10]
mov al, byte [edi + ecx]
xor al, 0x67
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x48f397
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
jmp 0x48f3bd
movups xmm0, xmmword [edi]
movaps xmm1, xmmword [str.gggggggggggggggg]
pxor xmm1, xmm0
movups xmmword [edx], xmm1
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x10
push edx
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48f3dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48f3e9
cmp dword [ebp - 0x4c], 0x10
mov eax, 0x1d
cmovne esi, eax
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x48f5d6
mov eax, dword [edi + 0x20]
push 8
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x4c], ecx
test ecx, ecx
je 0x48f4d4
movzx eax, byte [edi + 0x28]
xor al, 0x67
mov byte [ecx], al
movzx eax, byte [edi + 0x29]
xor al, 0x67
mov byte [ecx + 1], al
movzx eax, byte [edi + 0x2a]
xor al, 0x67
mov byte [ecx + 2], al
movzx eax, byte [edi + 0x2b]
xor al, 0x67
mov byte [ecx + 3], al
movzx eax, byte [edi + 0x2c]
xor al, 0x67
mov byte [ecx + 4], al
movzx eax, byte [edi + 0x2d]
xor al, 0x67
mov byte [ecx + 5], al
movzx eax, byte [edi + 0x2e]
xor al, 0x67
mov byte [ecx + 6], al
movzx eax, byte [edi + 0x2f]
xor al, 0x67
push esi
mov byte [ecx + 7], al
lea eax, [ebp - 0x3c]
push eax
push 8
push ecx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48f48c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48f498
cmp dword [ebp - 0x3c], 8
mov eax, 0x1d
cmovne esi, eax
push dword [ebp - 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x48f5d6
mov eax, dword [edi + 0x20]
push 0x208
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x40], ecx
test ecx, ecx
jne 0x48f4de
mov esi, 0xe
jmp 0x48f5d6
lea edx, [edi + 0x23a]
mov dword [ebp - 0x30], esi
lea eax, [edx + 0x207]
lea edi, [ecx + 0x207]
cmp ecx, eax
ja 0x48f4ff
cmp edi, edx
jb 0x48f4ff
sub edx, ecx
jmp 0x48f562
mov edi, dword [ebp - 0x40]
lea ecx, [edx + 0x30]
movaps xmm2, xmmword [str.gggggggggggggggg]
sub edx, edi
mov dword [ebp - 0x30], 0x200
lea eax, [edi + 0x10]
mov edi, 8
nop dword [eax]
lea ecx, [ecx + 0x40]
movaps xmm1, xmm2
lea eax, [eax + 0x40]
movups xmm0, xmmword [ecx - 0x70]
pxor xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [edx + eax - 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x50]
pxor xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
sub edi, 1
jne 0x48f520
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x30]
mov edi, 0x208
sub edi, dword [ebp - 0x30]
nop dword [eax]
mov al, byte [edx + ecx]
xor al, 0x67
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x48f570
push edi
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
push 0x208
push edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48f5a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48f5b1
cmp dword [ebp - 0x3c], 0x208
mov eax, 0x1d
cmovne esi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x44]
test esi, esi
jne 0x48f5d6
mov eax, dword [ebp - 0x54]
mov dword [eax], edi
xor eax, eax
jmp 0x48f5e9
mov esi, 0x54f
push ecx
mov ecx, edi
call fcn.0048ecd0
mov eax, dword [ebp - 0x54]
mov dword [eax], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret