Function at 0x48ee70
Capabilities:
Delete file
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 0x4cf05d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x468
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x58], ecx
push 0x448
push 8
mov byte [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x48ef34
push 0x208
lea eax, [esi + 0x23a]
mov dword [esi + 0x10], 0
xorps xmm0, xmm0
mov dword [esi + 0x14], 0
push 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x30], 0
push eax
movups xmmword [esi], xmm0
call fcn.004abe70
xorps xmm0, xmm0
add esp, 0xc
movq qword [esi + 0x28], xmm0
jmp 0x48ef39
xor esi, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x48ef4c
lea edi, [esi + 0xe]
jmp 0x48f77e
test edi, edi
jne 0x48f010
push esi
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov edi, eax
cmp edi, 0x720
je 0x48ef6d
test edi, edi
jne 0x48f6d2
lea ecx, [esi + 0x23a]
mov edx, 0x104
push ecx
push dword [ebx + 8]
push ecx
call fcn.0048c600
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [edi]
mov edx, 0x3886594b
mov eax, dword [edi + 4]
add ecx, 0x2ac18000
adc eax, 0xfe624e21
mov dword [ebp - 0x2c], eax
mov eax, ecx
mul edx
mov dword [ebp - 0x38], eax
mov edi, edx
mov eax, ecx
mov ecx, 0x346dc5d6
mul ecx
mov ecx, 0x3886594b
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x2c]
mul ecx
mov dword [ebp - 0x48], edx
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov edx, 0x346dc5d6
mul edx
add ecx, edi
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x48]
adc edx, 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x4c]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x2c]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0x34]
adc edx, eax
shrd ecx, edx, 0xb
shr edx, 0xb
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
jmp 0x48f016
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x10]
push eax
push esi
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
mov edi, eax
test edi, edi
jne 0x48f6d2
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x32]
push ecx
push 0x511d08
push ecx
mov edx, 0x104
mov dword [ebp - 0x34], eax
mov ecx, edi
call fcn.0048c600
test eax, eax
js 0x48f6cd
push 0x4eb520
mov ecx, edi
call fcn.0048c5a0
test eax, eax
js 0x48f6cd
push dword [ebp - 0x34]
mov ecx, edi
call fcn.0048c5a0
test eax, eax
js 0x48f6cd
push 0x4eb528
mov ecx, edi
call fcn.0048c5a0
test eax, eax
js 0x48f6cd
cmp dword [ebp - 0x40], 0
push 0
push 0x80
je 0x48f374
push 3
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x48f0c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x48f6d2
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 edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48f0f8
call edi
mov edi, eax
test edi, edi
jne 0x48f6d2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x48f118
cmp dword [ebp - 0x34], 4
je 0x48f108
mov edi, 0x1e
jmp 0x48f6d2
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 0x48f128
mov edi, 0x57
jmp 0x48f6d2
push 0
lea eax, [ebp - 0x34]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48f14f
call edi
mov edi, eax
test edi, edi
jne 0x48f6d2
jmp 0x48f171
cmp dword [ebp - 0x34], 0x10
je 0x48f15f
mov edi, 0x1e
jmp 0x48f6d2
movups xmm0, xmmword [ebp - 0x24]
movaps xmm1, xmmword [str.gggggggggggggggg]
xorps xmm1, xmm0
movups xmmword [ebp - 0x24], xmm1
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x24]
mov edi, 0xc
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x48f11e
add edx, 4
add ecx, 4
sub edi, 4
jae 0x48f180
push 0
lea eax, [ebp - 0x34]
push eax
push 8
lea edi, [esi + 0x28]
push edi
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48f1bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x48f6d2
jmp 0x48f1eb
cmp dword [ebp - 0x34], 8
je 0x48f1cc
mov edi, 0x1e
jmp 0x48f6d2
xor byte [edi], 0x67
xor byte [edi + 1], 0x67
xor byte [edi + 2], 0x67
xor byte [edi + 3], 0x67
xor byte [edi + 4], 0x67
xor byte [edi + 5], 0x67
xor byte [edi + 6], 0x67
xor byte [edi + 7], 0x67
push 0
lea eax, [ebp - 0x34]
push eax
push 0x208
lea edi, [esi + 0x23a]
push edi
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48f21f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x48f6d2
jmp 0x48f29d
cmp dword [ebp - 0x34], 0x208
je 0x48f232
mov edi, 0x1e
jmp 0x48f6d2
lea eax, [edi + 0x207]
xor ecx, ecx
cmp edi, eax
jbe 0x48f290
movaps xmm2, xmmword [str.gggggggggggggggg]
lea edx, [ecx + 8]
lea eax, [edi + 0x20]
mov ecx, 0x200
lea eax, [eax + 0x40]
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x60]
xorps xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
sub edx, 1
jne 0x48f250
nop dword [eax]
xor byte [ecx + edi], 0x67
inc ecx
cmp ecx, 0x208
jb 0x48f290
push 0
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x48f2bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x48f6d2
test ecx, ecx
jne 0x48f2c8
lea edi, [ecx + 0x57]
jmp 0x48f6d2
sub ecx, 0x224
mov dword [ebp - 0x2c], ecx
je 0x48f11e
mov eax, 0x3e0f83e1
mul ecx
shr edx, 8
imul eax, edx, 0x420
sub ecx, eax
jne 0x48f11e
nop
mov ecx, dword [esi + 0x20]
lea edx, [ebp - 0x478]
push 0x420
call fcn.0048c710
mov edi, eax
add esp, 4
test edi, edi
jne 0x48f6d2
test byte [ebp - 0x474], 1
je 0x48f11e
push 1
lea edx, [ebp - 0x478]
mov ecx, esi
call fcn.0048e740
mov ecx, dword [ebp - 0x44]
add esp, 4
cmp eax, 0x15e
movzx ecx, cl
mov edx, 1
cmove ecx, edx
cmp eax, 0x15e
mov dword [ebp - 0x44], ecx
cmovne edi, eax
sub dword [ebp - 0x2c], 0x420
jne 0x48f2f0
test edi, edi
jne 0x48f6d2
mov eax, dword [ebp - 0x58]
mov edx, 0x15e
mov dword [eax], esi
xor eax, eax
test cl, cl
cmovne eax, edx
jmp 0x48f789
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x48f39b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x48f6d2
push 4
mov dword [ebp - 0x28], 1
xor edi, edi
mov eax, dword [esi + 0x20]
push edi
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
jne 0x48f3cb
lea edi, [eax + 0xe]
jmp 0x48f6d2
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 0
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]
mov ecx, 0x1d
test eax, eax
jne 0x48f413
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x48f41a
cmp dword [ebp - 0x3c], 4
cmovne edi, ecx
push dword [ebp - 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x48f6d2
mov eax, dword [esi + 0x20]
push 0x10
push edi
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 - 0x44], edx
test edx, edx
jne 0x48f45b
lea edi, [eax + 0xe]
jmp 0x48f6d2
lea eax, [esi + 0xf]
lea ecx, [edx + 0xf]
cmp edx, eax
ja 0x48f48d
cmp ecx, esi
jb 0x48f48d
mov dword [ebp - 0x34], esi
mov ecx, edx
sub esi, edx
mov edx, 0x10
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x67
mov byte [ecx - 1], al
sub edx, 1
jne 0x48f475
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
jmp 0x48f49d
movups xmm0, xmmword [esi]
movaps xmm1, xmmword [str.gggggggggggggggg]
xorps 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 0x48f4bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x48f4c9
cmp dword [ebp - 0x4c], 0x10
mov eax, 0x1d
cmovne edi, eax
push dword [ebp - 0x44]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x48f6d2
mov eax, dword [esi + 0x20]
push 8
push edi
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
jne 0x48f50a
lea edi, [eax + 0xe]
jmp 0x48f6d2
movzx eax, byte [esi + 0x28]
xor al, 0x67
mov byte [ecx], al
movzx eax, byte [esi + 0x29]
xor al, 0x67
mov byte [ecx + 1], al
movzx eax, byte [esi + 0x2a]
xor al, 0x67
mov byte [ecx + 2], al
movzx eax, byte [esi + 0x2b]
xor al, 0x67
mov byte [ecx + 3], al
movzx eax, byte [esi + 0x2c]
xor al, 0x67
mov byte [ecx + 4], al
movzx eax, byte [esi + 0x2d]
xor al, 0x67
mov byte [ecx + 5], al
movzx eax, byte [esi + 0x2e]
xor al, 0x67
mov byte [ecx + 6], al
movzx eax, byte [esi + 0x2f]
xor al, 0x67
push 0
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 0x48f571
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x48f57d
cmp dword [ebp - 0x3c], 8
mov eax, 0x1d
cmovne edi, eax
push dword [ebp - 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x48f6d2
mov eax, dword [esi + 0x20]
push 0x208
push edi
mov dword [ebp - 0x3c], 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 0x48f5c1
lea edi, [eax + 0xe]
jmp 0x48f6d2
lea edx, [esi + 0x23a]
mov dword [ebp - 0x48], edi
lea eax, [edx + 0x207]
mov dword [ebp - 0x2c], edx
cmp ecx, eax
ja 0x48f5e1
lea eax, [ecx + 0x207]
cmp eax, edx
jae 0x48f652
mov eax, dword [ebp - 0x40]
lea ecx, [edx + 0x30]
movaps xmm2, xmmword [str.gggggggggggggggg]
mov esi, edx
add eax, 0x10
mov dword [ebp - 0x44], 8
sub esi, dword [ebp - 0x40]
mov dword [ebp - 0x34], esi
mov edx, esi
mov dword [ebp - 0x48], 0x200
nop dword [eax]
sub dword [ebp - 0x44], 1
lea ecx, [ecx + 0x40]
movups xmm0, xmmword [ecx - 0x70]
lea eax, [eax + 0x40]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax + edx - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
jne 0x48f610
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], edx
mov edx, 0x208
sub edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x2c]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, 0x67
mov byte [ecx - 1], al
sub edx, 1
jne 0x48f666
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x4c]
push edx
push eax
push 0x208
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48f69b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x48f6aa
cmp dword [ebp - 0x4c], 0x208
mov eax, 0x1d
cmovne edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x54]
test edi, edi
jne 0x48f6d2
mov eax, dword [ebp - 0x58]
mov dword [eax], esi
xor eax, eax
jmp 0x48f789
mov edi, 0x54f
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [esi + 0x14], eax
jbe 0x48f71b
nop dword [eax]
cmp byte [esi + 0x30], 0
lea ecx, [eax*4]
mov dword [ebp - 0x34], ecx
je 0x48f6fe
mov eax, dword [esi + 0x18]
mov ecx, dword [ecx + eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x34]
mov eax, dword [esi + 0x18]
mov ecx, dword [ecx + eax]
test ecx, ecx
je 0x48f70f
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp eax, dword [esi + 0x14]
jb 0x48f6e0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x48f739
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x48f748
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x30], 0
jne 0x48f754
cmp dword [esi + 0x14], 0
jne 0x48f75e
lea eax, [esi + 0x32]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
je 0x48f76e
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x58]
mov dword [eax], 0
mov eax, edi
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.004a9b96
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret