Function at 0x42fa10
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x84def8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8943b8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, ecx
cmp byte [ebp], 0
je 0x42fe7f
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push str.score123.dat
mov dword [esp + 0x5c], vtable.CFileWriter.0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x44], eax
jne 0x42fa7a
mov dword [esp + 0x44], esi
push 0x80000
mov dword [esp + 0x5c], esi
mov dword [esp + 0x38], esi
call fcn.007fb991
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
mov byte [esp + 0x58], 1
call fcn.0043dc20
mov dword [esi], eax
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [ebp + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [ebp + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [ebp + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [ebp + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [ebp + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [ebp + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [ebp + 0x3c]
mov dword [esi + 0x3c], edx
mov eax, dword [ebp + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x4c]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax]
lea ebx, [ebp + 0x44]
mov eax, ebx
mov edi, 0x48
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov edi, edi
test eax, eax
mov edx, dword [ebx + 4]
mov dword [esp + 0x2c], edx
je 0x42fb2f
cmp eax, ebx
je 0x42fb38
call fcn.0081ff70
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], ecx
je 0x42fb79
test eax, eax
jne 0x42fb4f
call fcn.0081ff70
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 4]
jne 0x42fb5d
call fcn.0081ff70
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov dword [esi + edi], ecx
lea ecx, [esp + 0x20]
add edi, 4
call fcn.0042ef50
mov eax, dword [esp + 0x20]
jmp 0x42fb20
mov eax, dword [ebp + 0x58]
mov dword [esi + edi], eax
mov eax, dword [ebp + 0x54]
mov edx, dword [eax]
lea ebx, [ebp + 0x50]
mov eax, ebx
add edi, 4
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
test eax, eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x2c], ecx
je 0x42fba3
cmp eax, ebx
je 0x42fbac
call fcn.0081ff70
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x24], edx
je 0x42fbed
test eax, eax
jne 0x42fbc3
call fcn.0081ff70
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 4]
jne 0x42fbd1
call fcn.0081ff70
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0xc]
mov dword [esi + edi], eax
lea ecx, [esp + 0x20]
add edi, 4
call fcn.0042ef50
mov eax, dword [esp + 0x20]
jmp 0x42fb94
mov eax, dword [ebp + 0xa4]
mov dword [esi + edi], eax
mov ecx, dword [ebp + 0xa0]
mov ebx, dword [ecx]
lea eax, [ebp + 0x9c]
add edi, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
nop
test eax, eax
mov edx, dword [ebp + 0xa0]
lea ecx, [ebp + 0x9c]
mov dword [esp + 0x2c], edx
je 0x42fc28
cmp eax, ecx
je 0x42fc31
call fcn.0081ff70
mov eax, dword [esp + 0x20]
cmp ebx, dword [esp + 0x2c]
je 0x42fc81
test eax, eax
jne 0x42fc44
call fcn.0081ff70
mov eax, dword [esp + 0x20]
cmp ebx, dword [eax + 4]
jne 0x42fc52
call fcn.0081ff70
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0xc]
mov dword [esi + edi], ecx
add edi, 4
cmp ebx, dword [eax + 4]
jne 0x42fc65
call fcn.0081ff70
mov edx, dword [ebx + 0x10]
mov dword [esi + edi], edx
lea ecx, [esp + 0x20]
add edi, 4
call fcn.004203b0
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jmp 0x42fc10
mov eax, 0x14
lea ecx, [ebp + 0x1a8]
lea ebx, [ebp + 0xac]
mov dword [esi + edi], eax
add edi, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov dword [esi + edi], eax
mov eax, dword [ebx]
mov ebp, dword [eax]
add edi, 4
add ebx, 0xfffffffc
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
lea esp, [esp]
test ebx, ebx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov dword [esp + 0x3c], edx
je 0x42fcd5
add eax, 0xfffffffc
cmp ebx, eax
je 0x42fcda
call fcn.0081ff70
cmp ebp, dword [esp + 0x3c]
je 0x42fd22
test ebx, ebx
jne 0x42fce9
call fcn.0081ff70
cmp ebp, dword [ebx + 4]
jne 0x42fcf3
call fcn.0081ff70
mov eax, dword [ebp + 0xc]
mov dword [esi + edi], eax
add edi, 4
cmp ebp, dword [ebx + 4]
jne 0x42fd06
call fcn.0081ff70
mov ecx, dword [ebp + 0x10]
mov dword [esi + edi], ecx
lea ecx, [esp + 0x28]
add edi, 4
call fcn.004203b0
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
jmp 0x42fcc0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x42fd42
mov ecx, dword [ecx + 4]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + edi], eax
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
add edi, 4
cmp ebp, dword [eax + 4]
lea ebx, [eax - 4]
jbe 0x42fd60
call fcn.0081ff70
jmp 0x42fd60
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp dword [ecx], eax
mov dword [esp + 0x1c], eax
ja 0x42fd73
cmp eax, eax
jbe 0x42fd7c
call fcn.0081ff70
mov eax, dword [esp + 0x1c]
cmp ebx, ebx
je 0x42fd89
call fcn.0081ff70
mov eax, dword [esp + 0x1c]
cmp ebp, eax
je 0x42fdd2
cmp ebp, dword [ebx + 8]
jb 0x42fd97
call fcn.0081ff70
mov edx, dword [ebp]
mov dword [esi + edi], edx
mov eax, dword [ebp + 4]
mov dword [esi + edi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + edi + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [esi + edi + 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [esi + edi + 0x10], eax
mov ecx, dword [ebp + 0x14]
mov dword [esi + edi + 0x14], ecx
add edi, 0x18
cmp ebp, dword [ebx + 8]
jb 0x42fdcd
call fcn.0081ff70
add ebp, 0x18
jmp 0x42fd60
mov ebx, dword [esp + 0x18]
add dword [esp + 0x14], 0x10
add ebx, 0xc
sub dword [esp + 0x20], 1
mov dword [esp + 0x18], ebx
jne 0x42fca4
push 0x80000
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], 0
call fcn.007fb991
mov ebp, eax
mov dword [esp + 0x3c], ebp
push 0x80000
push ebp
push edi
push esi
mov byte [esp + 0x6c], 2
call fcn.00409a10
mov edi, eax
add esp, 0x14
xor ecx, ecx
test edi, edi
jbe 0x42fe45
lea edx, [esi + edi - 1]
lea ebx, [ebx]
mov al, cl
mov bl, 7
imul bl
xor al, byte [ecx + ebp]
add ecx, 1
mov byte [edx], al
sub edx, 1
cmp ecx, edi
jb 0x42fe30
mov eax, dword [esp + 0x44]
push 0
lea edx, [esp + 0x4c]
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call fcn.00820846
push esi
call fcn.00820846
mov eax, dword [esp + 0x4c]
add esp, 8
test eax, eax
mov dword [esp + 0x40], vtable.CFileWriter.0
je 0x42fe7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret